- LRU
LRU Cache
- Memcache
Memcache cache
- File
File cache
- Mysql
Mysql cache
- Redis
Redis cache
- Mongodb
Mongodb cache
LRU Cache
Kind: global class
lru reset
Kind: instance method of LRU
delete cache
Kind: instance method of LRU
| Param | Description |
|---|---|
| key | cache key |
clean cache by key prefix
Kind: instance method of LRU
| Param | Description |
|---|---|
| key | cache key prefix |
read cache
Kind: instance method of LRU
| Param | Description |
|---|---|
| key | read key |
seach cache by key
Kind: instance method of LRU
| Param | Description |
|---|---|
| key | search key |
write the cache
Kind: instance method of LRU
| Param | Description |
|---|---|
| key | cache key |
| value | cache value |
Memcache cache
Kind: global class
delete cache
Kind: instance method of Memcache
| Param | Description |
|---|---|
| key | cache key |
clean cache by key prefix
Kind: instance method of Memcache
| Param | Description |
|---|---|
| prefix | cache key prefix |
read the cache
Kind: instance method of Memcache
| Param | Default | Description |
|---|---|---|
| key | cache key | |
| forcecache | true |
use force cache, default true |
seach cache by key
Kind: instance method of Memcache
| Param | Description |
|---|---|
| key | search key |
write the cache
Kind: instance method of Memcache
| Param | Description |
|---|---|
| key | cache key |
| data | cache value |
| ttl | ttl |
File cache
Kind: global class
delete cache
Kind: instance method of File
| Param | Description |
|---|---|
| key | cache key |
clean cache
Kind: instance method of File
| Param | Description |
|---|---|
| dir | cache dir |
read cache
Kind: instance method of File
| Param | Description |
|---|---|
| key | read key |
seach cache alias read
Kind: instance method of File
| Param | Description |
|---|---|
| key | search key |
write the cache
Kind: instance method of File
| Param | Description |
|---|---|
| key | cache key |
| value | cache value |
Mysql cache
Kind: global class
destory mysql instance
Kind: instance method of Mysql
init database
Kind: instance method of Mysql
read cache by key
Kind: instance method of Mysql
| Param | Description |
|---|---|
| key | the cache key |
seach cache by key prefix
Kind: instance method of Mysql
| Param | Description |
|---|---|
| prefix | key prefix |
write the cache
Kind: instance method of Mysql
| Param | Default | Description |
|---|---|---|
| key | cache key | |
| data | cache value | |
| expire | 0 |
expire date |
delete cache
Kind: instance method of Mysql
| Param | Description |
|---|---|
| key | cache key |
clean cache by key prefix
Kind: instance method of Mysql
| Param | Description |
|---|---|
| prefix | cache key prefix |
Redis cache
Kind: global class
redis quit
Kind: instance method of Redis
delete cache
Kind: instance method of Redis
| Param | Description |
|---|---|
| key | cache key |
clean cache by key prefix
Kind: instance method of Redis
| Param | Description |
|---|---|
| key | cache key prefix |
read cache
Kind: instance method of Redis
| Param | Description |
|---|---|
| key | read key |
seach cache by key
Kind: instance method of Redis
| Param | Description |
|---|---|
| key | search key |
write the cache
Kind: instance method of Redis
| Param | Description |
|---|---|
| key | cache key |
| data | cache value |
| ttl | cache expire time |
Mongodb cache
Kind: global class
mongodb close
Kind: instance method of Mongodb
mongodb init, createCollection etc.
Kind: instance method of Mongodb
| Param | Description |
|---|---|
| options | constructor options |
delete cache
Kind: instance method of Mongodb
| Param | Description |
|---|---|
| key | cache key |
clean cache by key prefix
Kind: instance method of Mongodb
| Param | Description |
|---|---|
| key | cache key prefix |
read cache
Kind: instance method of Mongodb
| Param | Description |
|---|---|
| key | read key |
seach cache by key
Kind: instance method of Mongodb
| Param | Description |
|---|---|
| key | search key |
write the cache
Kind: instance method of Mongodb
| Param | Description |
|---|---|
| key | cache key |
| value | cache value |