clockobjcache

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock struct {
}

func New

func New(capacity int64) *Clock

func (*Clock) Available

func (c *Clock) Available() int64

func (*Clock) Capacity

func (c *Clock) Capacity() int64

func (*Clock) Flush

func (c *Clock) Flush()

func (*Clock) Get

func (c *Clock) Get(key any, preloading bool) (value []byte, size int64, ok bool)

func (*Clock) Set

func (c *Clock) Set(key any, value []byte, size int64, preloading bool)

func (*Clock) Used

func (c *Clock) Used() int64

Jump to

Keyboard shortcuts

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