Versions in this module Expand all Collapse all v1 v1.1.0 Apr 23, 2026 v1.0.0 Jan 20, 2026 Changes in this version + const IdHashSize + const IdSliceHashSize + type CacheFlag int8 + const FlagCache + const FlagChunkedCache + const FlagVaryCache + const FlagVaryIndex + func (f CacheFlag) String() string + type ID struct + func NewID(path string) *ID + func NewVirtualID(path string, virtualKey string) *ID + func (id *ID) Bytes() []byte + func (id *ID) Ext() string + func (id *ID) Hash() IDHash + func (id *ID) HashStr() string + func (id *ID) Key() string + func (id *ID) MarshalCBOR() ([]byte, error) + func (id *ID) MarshalJSON() ([]byte, error) + func (id *ID) Path() string + func (id *ID) String() string + func (id *ID) UnmarshalCBOR(buf []byte) error + func (id *ID) UnmarshalJSON(buf []byte) error + func (id *ID) WPath(pwd string) string + func (id *ID) WPathSlice(pwd string, sliceIndex uint32) string + type IDHash [IdHashSize]byte + func (idx IDHash) WPath(pwd string) string + type IDSliceHash [IdSliceHashSize]byte + type Metadata struct + BlockSize uint64 + Chunks bitmap.Bitmap + Code int + ExpiresAt int64 + Flags CacheFlag + Headers http.Header + ID *ID + LastRefUnix int64 + Parts bitmap.Bitmap + Refs int64 + RespUnix int64 + Size uint64 + VirtualKey []string + func (m *Metadata) Clone() *Metadata + func (m *Metadata) HasComplete() bool + func (m *Metadata) HasVary() bool + func (m *Metadata) IsChunked() bool + func (m *Metadata) IsVary() bool + func (m *Metadata) IsVaryCache() bool + func (m *Metadata) IsVaryChunked() bool