Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { // Get retrieves v from Backend. The returned v may be the original value. The caller should // not modify it. Get(ctx context.Context, key string) (v []byte, storedTime, expirationTime time.Time, err error) // Store stores a copy of v into Backend. v cannot be nil. // If expirationTime is already passed, Store is a noop. Store(ctx context.Context, key string, v []byte, storedTime, expirationTime time.Time) error // Closer closes the cache backend. io.Closer }
Backend represents a cache backend.
Click to show internal directories.
Click to hide internal directories.