Versions in this module Expand all Collapse all v1 v1.0.1 Feb 24, 2024 Changes in this version + type DB struct + func New[T any](opts ...Option[T]) *DB[T] + func (c *DB[T]) GetKeys() []string + func (db *DB[T]) Get(key string) (T, error) + func (db *DB[T]) GetCapacity() int64 + func (db *DB[T]) GetKeyEvictionPolicy() types.KeyEvictionPolicy + func (db *DB[T]) Set(key string, value T, priority int64) + func (db *DB[T]) SetWithExpiry(key string, value T, priority, expiry int64) + func (db *DB[T]) Size() int64 + type Option func(*DB[T]) + func WithCapacity[T any](capacity int64) Option[T] + func WithKeyEvictionPolicy[T any](keyEvictionPolicy types.KeyEvictionPolicy) Option[T] v1.0.0 Feb 22, 2024