package
0.1.4
Repository: https://github.com/hyp3rd/hypercache.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

ApplyOptions applies the given options to the given backend.
NewInMemory creates a new in-memory cache with the given options.
NewRedis creates a new redis cache with the given options.
WithCapacity is an option that sets the capacity of the cache.
WithFilterFunc returns a filter that filters the items by a given field's value.
WithKeysSetName is an option that sets the name of the set that holds the keys of the items in the cache.
WithRedisClient is an option that sets the redis client to use.
WithSerializer is an option that sets the serializer to use.
WithSortBy returns a filter that sorts the items by a given field.
WithSortOrderAsc returns a filter that determines whether to sort ascending or not.

# Structs

InMemory is a cache backend that stores the items in memory, leveraging a custom `ConcurrentMap`.
Redis is a cache backend that stores the items in a redis implementation.
SortOrderFilter is a filter that sorts the items by a given field.

# Interfaces

IBackend is the interface that must be implemented by cache backends.
IBackendConstrain is the interface that defines the constrain type implemented by cache backends.
IFilter is a backend agnostic interface for a filter that can be applied to a list of items.

# Type aliases

Option is a function type that can be used to configure the `HyperCache` struct.