Versions in this module Expand all Collapse all v1 v1.0.5 Jul 7, 2026 Changes in this version + type CacheBuffer struct + func NewCacheBuffer[T any](parent internal.TypedCache[T]) *CacheBuffer[T] + func (b *CacheBuffer[T]) Clear(ctx context.Context) error + func (b *CacheBuffer[T]) Close(ctx context.Context) error + func (b *CacheBuffer[T]) CounterValue(ctx context.Context, key string) (int64, error) + func (b *CacheBuffer[T]) Decrement(ctx context.Context, key string, amount int64) (int64, error) + func (b *CacheBuffer[T]) Delete(ctx context.Context, key string) error + func (b *CacheBuffer[T]) Expire(ctx context.Context, key string, ttl time.Duration) error + func (b *CacheBuffer[T]) Flush() (map[string]CacheBufferItem[T], bool) + func (b *CacheBuffer[T]) Get(ctx context.Context, key string) (T, error) + func (b *CacheBuffer[T]) GetDefault(ctx context.Context, key string, defaultValue T) (T, error) + func (b *CacheBuffer[T]) Has(ctx context.Context, key string) bool + func (b *CacheBuffer[T]) InTransaction() bool + func (b *CacheBuffer[T]) Increment(ctx context.Context, key string, amount int64) (int64, error) + func (b *CacheBuffer[T]) Keys(ctx context.Context) ([]string, error) + func (b *CacheBuffer[T]) Set(ctx context.Context, key string, value T, ttl time.Duration) error + func (b *CacheBuffer[T]) TTL(ctx context.Context, key string) time.Duration + type CacheBufferItem struct + LifeTime time.Time + Op internal.CacheOperation + TTL time.Duration + Value T v1.0.4 Jul 4, 2026