package
0.1.1
Repository: https://github.com/seal-io/kubecia.git
Documentation: pkg.go.dev

# Functions

MustNewFile likes NewFile, but panic if error found.
MustNewFileWithConfig likes NewFileWithConfig, but panic if error found.
MustNewMemory likes NewMemory, but panic if error found.
MustNewMemoryWithConfig likes NewMemoryWithConfig, but panic if error found.
NewFile returns a filesystem Cache implementation.
NewFileWithConfig returns a filesystem Cache implementation with given configuration.
NewMemory returns an in-memory Cache implementation.
NewMemoryWithConfig returns an in-memory Cache implementation with given configuration.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

FileConfig holds the configuration of the filesystem cache, entry indexes by key and stores in one file.
MemoryConfig holds the configuration of the in-memory cache, entry indexes by key and stores in one bucket, the total cache size is BucketCapacity * Buckets.

# Interfaces

Cache holds the action of caching.