Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Now ¶
func Now() uint32
Now returns time as a Unix time, the number of seconds elapsed since program start.
func SetNow ¶ added in v1.1.0
func SetNow(t uint32)
SetNow sets the current time.
NOTE: use only for testing and debugging.
func Start ¶
func Start()
Start should be called when the cache instance is created to initialize the timer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.