# Functions
Decode decode data.
Encode Encode data.
GenSqlKey generates cache key.
GetCacheSql returns cacher PKs via SQL.
GobDecode decode data with gob.
GobEncode encode data with gob.
JsonDecode decode data with json.
JsonEncode encode data with json.
Md5 return md5 hash string.
NewLevelDBStore creates a leveldb store.
NewLRUCacher creates a cacher.
NewLRUCacher2 creates a cache include different params.
NewManager creates a cache manager.
NewMemoryStore creates a new store in memory.
PutCacheSql puts cacher SQL and PKs.
# Constants
CacheExpired is default cache expired time.
CacheGcInterval represents interval time to clear all expired nodes.
CacheGcMaxRemoved represents max nodes removed when gc.
CacheMaxMemory is not use now.
# Variables
list all the errors.
ErrNotExist record does not exist error.
list all the errors.
# Structs
LevelDBStore implements CacheStore provide local machine.
LRUCacher implments cache object facilities.
Manager represents a cache manager.
MemoryStore represents in-memory store.
# Interfaces
Cacher is an interface to provide cache id format : u-<pk1>-<pk2>...
CacheStore is a interface to store cache.