coalescing

package
v1.6.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoalescingLayerStorage

type CoalescingLayerStorage struct {
	*ristretto.Cache
}

CoalescingLayerStorage is the layer to be able to not coalesce uncoalesceable request

func InitializeCoalescingLayerStorage

func InitializeCoalescingLayerStorage() *CoalescingLayerStorage

InitializeCoalescingLayerStorage initialize the storage

func (*CoalescingLayerStorage) Delete

func (provider *CoalescingLayerStorage) Delete(key string)

Delete method will delete the response in Ristretto provider if exists corresponding to key param

func (*CoalescingLayerStorage) Destruct

func (provider *CoalescingLayerStorage) Destruct() error

Destruct method will shutdown properly the provider

func (*CoalescingLayerStorage) Exists

func (provider *CoalescingLayerStorage) Exists(key string) bool

Exists method returns if the key should coalesce

func (*CoalescingLayerStorage) Set

func (provider *CoalescingLayerStorage) Set(key string)

Set method will store the response in Ristretto provider

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL