2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
koreader/frontend/cacheitem.lua

20 lines
313 B
Lua
Raw Normal View History

2013-10-18 20:38:07 +00:00
--[[
Inheritable abstraction for cache items
--]]
local CacheItem = {
2014-03-13 13:52:43 +00:00
size = 64, -- some reasonable default for simple Lua values / small tables
2013-10-18 20:38:07 +00:00
}
function CacheItem:new(o)
2014-03-13 13:52:43 +00:00
o = o or {}
setmetatable(o, self)
self.__index = self
return o
2013-10-18 20:38:07 +00:00
end
function CacheItem:onFree()
end
return CacheItem