cache

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BiDirectionalCache

type BiDirectionalCache struct {
	// contains filtered or unexported fields
}

func NewBiDirectionalCache

func NewBiDirectionalCache(size int) (*BiDirectionalCache, error)

func (*BiDirectionalCache) GetBigIntFromIP

func (c *BiDirectionalCache) GetBigIntFromIP(ip netip.Addr) (*big.Int, bool)

func (*BiDirectionalCache) GetIPFromBigInt

func (c *BiDirectionalCache) GetIPFromBigInt(bigIntKey string) (netip.Addr, bool)

func (*BiDirectionalCache) PutIPAndBigInt

func (c *BiDirectionalCache) PutIPAndBigInt(ip netip.Addr, bigInt *big.Int)

Jump to

Keyboard shortcuts

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