mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add defaults.lua
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
--[[
|
||||
Inheritable abstraction for cache items
|
||||
]]--
|
||||
--]]
|
||||
|
||||
require "defaults"
|
||||
|
||||
|
||||
CacheItem = {
|
||||
size = 64, -- some reasonable default for simple Lua values / small tables
|
||||
}
|
||||
@@ -20,7 +24,7 @@ A global LRU cache
|
||||
]]--
|
||||
Cache = {
|
||||
-- cache configuration:
|
||||
max_memsize = 1024*1024*10, -- 10MB cache size
|
||||
max_memsize = DGLOBAL_CACHE_SIZE,
|
||||
-- cache state:
|
||||
current_memsize = 0,
|
||||
-- associative cache
|
||||
|
||||
Reference in New Issue
Block a user