2018-02-27 17:20:42 +08:00
|
|
|
package cache
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
type NullCache struct {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-08-13 15:04:52 +08:00
|
|
|
func (bm *NullCache) Get(key string) interface{} {
|
2018-02-27 17:20:42 +08:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (bm *NullCache)GetMulti(keys []string) []interface{} {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (bm *NullCache)Put(key string, val interface{}, timeout time.Duration) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (bm *NullCache)Delete(key string) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (bm *NullCache)Incr(key string) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (bm *NullCache)Decr(key string) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (bm *NullCache)IsExist(key string) bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
func (bm *NullCache)ClearAll() error{
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (bm *NullCache)StartAndGC(config string) error {
|
|
|
|
return nil
|
|
|
|
}
|