Versions in this module Expand all Collapse all v1 v1.0.0 Oct 16, 2017 Changes in this version + var GlobalPlanCache *ShardedLRUCache + var PlanCacheCapacity int64 + var PlanCacheEnabled bool + var PlanCacheShards int64 + type Key interface + Hash func() []byte + func NewSQLCacheKey(sessionVars *variable.SessionVars, sql string, schemaVersion int64, ...) Key + type SQLCacheValue struct + Expensive bool + Plan plan.Plan + StmtNode ast.StmtNode + func NewSQLCacheValue(ast ast.StmtNode, plan plan.Plan, expensive bool) *SQLCacheValue + type ShardedLRUCache struct + func NewShardedLRUCache(capacity, shardCount int64) *ShardedLRUCache + func (s *ShardedLRUCache) Get(key Key) (Value, bool) + func (s *ShardedLRUCache) Put(key Key, value Value) + type SimpleLRUCache struct + func NewSimpleLRUCache(capacity int64) *SimpleLRUCache + func (l *SimpleLRUCache) Get(key Key) (value Value, ok bool) + func (l *SimpleLRUCache) Put(key Key, value Value) + type Value interface