package
1.1.0-beta
Repository: https://github.com/coderushing/tidb.git
Documentation: pkg.go.dev

# Functions

NewShardedLRUCache creates a ShardedLRUCache.
NewSimpleLRUCache creates a SimpleLRUCache object, whose capacity is "capacity".

# Structs

ShardedLRUCache is a sharded LRU Cache, thread safe.
SimpleLRUCache is a simple least recently used cache, not thread-safe, use it carefully.

# Interfaces

Key is the interface that every key in LRU Cache should implement.
Value is the interface that every value in LRU Cache should implement.