Documentation
¶
Index ¶
- Constants
- Variables
- func AssertInvokeHit[T interface{}](ctx context.Context, app string, method string, input interface{}) T
- func CheckCache(ctx context.Context, app string, method string, buf []byte) (cm.ReturnVal, bool)
- func CheckCacheShard(ctx context.Context, app string, method string, buf []byte) (cm.ReturnVal, int, bool)
- func Invoke[T interface{}](ctx context.Context, app string, method string, input interface{}) T
- func InvokeHit(ctx context.Context, app string, method string, input interface{})
- func InvokeMiss[T interface{}](ctx context.Context, app string, method string, input interface{})
- func InvokeMissVal[T interface{}](ctx context.Context, app string, method string, input interface{}) T
- func Invoke_deprecated[T interface{}](ctx context.Context, app string, method string, input interface{}) T
- func Invoke_deprecated2[T interface{}](ctx context.Context, app string, method string, input interface{}) T
- func OffloadSave()
- func PollUntilMiss(ctx context.Context, app string, method string, input interface{})
- func ShardInvoke[T interface{}](ctx context.Context, app string, method string, input interface{}) T
- type SaveArgs
Constants ¶
View Source
const SavingBatchSize = 10
Variables ¶
View Source
var SavingQueue = make(chan SaveArgs, 20000)
Use a dedicated channel for saving to the cache in UpperBound mode
Functions ¶
func AssertInvokeHit ¶
func AssertInvokeHit[T interface{}](ctx context.Context, app string, method string, input interface{}) T
Used for cache experiments
func CheckCache ¶
CheckCache checks if cache hit, return (value in cache, if hit)
func CheckCacheShard ¶
func InvokeMiss ¶
func InvokeMissVal ¶
func Invoke_deprecated ¶
func Invoke_deprecated2 ¶
func OffloadSave ¶
func OffloadSave()
func PollUntilMiss ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.