Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Http sysUtils.HttpI = sysUtils.NewHttp()
)
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[E any] struct { KeyTTL time.Duration // Time after which the data will be expired and removed from the cache CleanupFreq time.Duration // This is the time at which a cleaner goroutines checks whether the data is expired in cache Size int // This is the size upto which this cache can store a value corresponding to any key // contains filtered or unexported fields }
Cache is an in-memory cache. Each key-value pair stored in this cache have a TTL and one goroutine removes the
key-value pair form the cache which is older than TTL time.
func (*Cache[E]) ReadAndPopData ¶
ReadAndPopData reads the data by taking a string key,
if there is any data available corresponding to the given key then it removes the data from the cache and returns it in the form of []byte
type Transformer ¶
type TransformerAny ¶ added in v1.5.0
type TransformerAny interface { Transformer[any] }
Click to show internal directories.
Click to hide internal directories.