gitea: code.gitea.io/gitea/modules/cache Index | Files

package cache

import "code.gitea.io/gitea/modules/cache"

Index

Package Files

cache.go

func GetInt Uses

func GetInt(key string, getFunc func() (int, error)) (int, error)

GetInt returns key value from cache with callback when no key exists in cache

func GetInt64 Uses

func GetInt64(key string, getFunc func() (int64, error)) (int64, error)

GetInt64 returns key value from cache with callback when no key exists in cache

func NewContext Uses

func NewContext() error

NewContext start cache service

func Remove Uses

func Remove(key string)

Remove key from cache

Package cache imports 4 packages (graph) and is imported by 11 packages. Updated 2019-09-15. Refresh now. Tools for package owners.