gls

package module
v0.0.0-...-e4fd2b5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: MIT Imports: 6 Imported by: 0

README

gls

gls is simple lib for goroutine local storage

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(key string)

Delete cleans the specific data

func DeleteAll

func DeleteAll()

DeleteAll cleans all data under current goroutine. you should call this func when your goroutine exited to avoid anther goroutine get the dirty data next time.

func GetGoroutineID

func GetGoroutineID() uint64

GetGoroutineID return the current goroutine ID

func Load

func Load(key string) (val interface{}, ok bool)

Load loads the specific data

func Store

func Store(key string, val interface{})

Store stores the specific key/val

Types

This section is empty.

Jump to

Keyboard shortcuts

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