package
0.0.0-20210822100304-4e1d4fcc1e67
Repository: https://github.com/xormplus/xorm.git
Documentation: pkg.go.dev

# Functions

GenSqlKey generates cache key.
GetCacheSql returns cacher PKs via SQL.
md5 hash string.
NewLRUCacher creates a cacher.
NewLRUCacher2 creates a cache include different params.
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.
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.