types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MPL-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 SortingField

type SortingField string

SortingField is a type that represents the field to sort the cache items by.

const (
	SortByValue       SortingField = "Value"       // Sort by the value of the cache item
	SortByLastAccess  SortingField = "lastAccess"  // Sort by the last access time of the cache item
	SortByAccessCount SortingField = "accessCount" // Sort by the number of times the cache item has been accessed
	SortByExpiration  SortingField = "Expiration"  // Sort by the expiration duration of the cache item
)

Constants for the different fields that the cache items can be sorted by.

func (SortingField) String

func (f SortingField) String() string

String returns the string representation of the SortingField.

Jump to

Keyboard shortcuts

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