mirror of
https://github.com/astaxie/beego.git
synced 2025-07-10 03:30:20 +00:00
Add GetMulti method for Cache interface
This commit is contained in:
2
cache/cache.go
vendored
2
cache/cache.go
vendored
@ -47,6 +47,8 @@ import (
|
||||
type Cache interface {
|
||||
// get cached value by key.
|
||||
Get(key string) interface{}
|
||||
// GetMulti is a batch version of Get.
|
||||
GetMulti(keys []string) []interface{}
|
||||
// set cached value with key and expire time.
|
||||
Put(key string, val interface{}, timeout int64) error
|
||||
// delete cached value by key.
|
||||
|
Reference in New Issue
Block a user