Files
koreader/frontend/cacheitem.lua

20 lines
313 B
Lua
Raw Normal View History

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