Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheProvider ¶
func NewDefaultCacheProvider ¶
func NewDefaultCacheProvider(capacity int) CacheProvider
func NewSingleValueCacheProvider ¶
func NewSingleValueCacheProvider() CacheProvider
type EmptyCacheProvider ¶
type EmptyCacheProvider bool
func (EmptyCacheProvider) Get ¶
func (c EmptyCacheProvider) Get(_ int) int
func (EmptyCacheProvider) Put ¶
func (c EmptyCacheProvider) Put(_ int, _ int)
type LRUCache ¶
type LRUCache struct {
// contains filtered or unexported fields
}
func Constructor ¶
Click to show internal directories.
Click to hide internal directories.