cache

package
v0.0.0-...-46a4ced Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

Cache is a simple struct that holds the last timestamp

func NewCache

func NewCache() *Cache

NewCache creates a new cache

func (*Cache) GetLastTimestamp

func (c *Cache) GetLastTimestamp() time.Time

GetLastTimestamp returns the last timestamp

func (*Cache) SetLastTimestamp

func (c *Cache) SetLastTimestamp(t time.Time)

SetLastTimestamp sets the last timestamp

Jump to

Keyboard shortcuts

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