eviction

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evictable

type Evictable interface {
	CreationTime() time.Time
	LastAccessTime() time.Time
	AccessHit() int32
	Value() interface{}
}

Evictable is an interface for entries, records etc.

type Expirable

type Expirable interface {
	ExpirationTime() time.Time
	SetExpirationTime(time time.Time)
	IsExpiredAt(time time.Time) bool
}

Expirable is expiring data model interface. It provides a time variable to be compared against other time values to decide on "future" and "past".

Jump to

Keyboard shortcuts

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