Versions in this module Expand all Collapse all v1 v1.1.0 Jul 10, 2026 v1.0.0 Jul 6, 2026 Changes in this version + type Adapter interface + Delete func(ctx context.Context, key string) error + Peek func(ctx context.Context, key string, n int) ([]byte, error) + PresignGet func(ctx context.Context, key string, ttl time.Duration) (PresignedURL, error) + PresignPut func(ctx context.Context, key string, ttl time.Duration) (PresignedURL, error) + Stat func(ctx context.Context, key string) (ObjectInfo, error) + type Memory struct + func NewMemory() *Memory + func (m *Memory) Delete(_ context.Context, key string) error + func (m *Memory) Has(key string) bool + func (m *Memory) Peek(_ context.Context, key string, n int) ([]byte, error) + func (m *Memory) PresignGet(_ context.Context, key string, ttl time.Duration) (PresignedURL, error) + func (m *Memory) PresignPut(_ context.Context, key string, ttl time.Duration) (PresignedURL, error) + func (m *Memory) Put(key string, data []byte) + func (m *Memory) Stat(_ context.Context, key string) (ObjectInfo, error) + type ObjectInfo struct + Checksum string + Size int64 + type PresignedURL struct + ExpiresAt time.Time + Method string + URL string