package
4.4.4
Repository: https://github.com/b2wdigital/restql-golang.git
Documentation: pkg.go.dev

# Functions

New constructs an Cache instance.
NewMappingsReaderCache constructs a MappingsReaderCache instance.
NewParserCache constructs a ParserCache instance.
NewQueryReaderCache constructs a QueryReaderCache instance.
ParserCacheLoader is the strategy to load values for the cached parser.
QueryCacheLoader is the strategy to load values for the cached query reader.
TenantCacheLoader is the strategy to load values for the cached mappings reader.
WithExpiration sets the time to live of cache entries.
WithRefreshInterval sets the interval between each execution of the background refresh routine.
WithRefreshQueueLength sets the maximum queue size of cache entries to be refreshed.

# Structs

Cache is an in-memory container that uses a LRU eviction strategy.
MappingsReaderCache is a caching wrapper that implements the MappingsReader interface.
ParserCache is a caching wrapper that implements the Parser interface.
QueryReaderCache is a caching wrapper that implements the QueryReader interface.

# Type aliases

Loader is a strategy to fetch values not found or expired in cache.
Option is a cache parameter configurator.