package
1.20240719.1
Repository: https://github.com/blend/go-sdk.git
Documentation: pkg.go.dev

# Functions

New returns a new LocalLocalCache.
NewLRUHeap creates a new, empty, LRU Heap.
NewLRUQueue creates a new, empty, LRUQueue.
OptLRU sets the LRU implementation.
OptSweepInterval sets the local cache sweep interval.
OptValueExpires sets the ttl for the value.
OptValueOnRemove sets the on remove handler.
OptValueTimestamp sets the timestamp for the value.
OptValueTTL sets the ttl for the value.

# Constants

RemovalReasons.
RemovalReasons.

# Structs

LocalCache is a memory LocalCache.
LRUHeap is a fifo buffer that is backed by a pre-allocated array, instead of allocating a whole new node object for each element (which saves GC churn).
LRUQueue is a fifo buffer that is backed by a pre-allocated array, instead of allocating a whole new node object for each element (which saves GC churn).
Stats represents cached statistics.
Value is a cached item.

# Interfaces

Cache is a type that implements the cache interface.
Locker is a cache type that supports external control of locking for both exclusive and reader/writer locks.
LRU is a type that implements the LRU methods.

# Type aliases

LocalCacheOption is a local cache option.
LRUHeapValues is an alias that allows for use of a Value array as a heap storage backend.
RemovalReason is a reason for removal.
ValueOption is an option for a cache value.