mirror of
https://github.com/koreader/koreader
synced 2024-11-11 19:11:14 +00:00
20 lines
313 B
Lua
20 lines
313 B
Lua
--[[
|
|
Inheritable abstraction for cache items
|
|
--]]
|
|
|
|
local CacheItem = {
|
|
size = 64, -- some reasonable default for simple Lua values / small tables
|
|
}
|
|
|
|
function CacheItem:new(o)
|
|
o = o or {}
|
|
setmetatable(o, self)
|
|
self.__index = self
|
|
return o
|
|
end
|
|
|
|
function CacheItem:onFree()
|
|
end
|
|
|
|
return CacheItem
|