MCPcopy Create free account
hub / github.com/devfeel/dotweb / Decr

Method Decr

cache/cache.go:26–26  ·  view source on GitHub ↗

Decr decreases int64-type value by given key as a counter if key not exist, before increase set value with zero

(key string)

Source from the content-addressed store, hash-verified

24 // Decr decreases int64-type value by given key as a counter
25 // if key not exist, before increase set value with zero
26 Decr(key string) (int64, error)
27 // Delete delete cache item by given key
28 Delete(key string) error
29 // ClearAll clear all cache items

Callers 1

DECRMethod · 0.65

Implementers 2

RuntimeCachecache/runtime/cache_runtime.go
RedisCachecache/redis/cache_redis.go

Calls

no outgoing calls

Tested by

no test coverage detected