mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-24 05:03:45 +08:00
实现文档缓存
This commit is contained in:
39
cache/cache_null.go
vendored
Normal file
39
cache/cache_null.go
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
package cache
|
||||
|
||||
import "time"
|
||||
|
||||
type NullCache struct {
|
||||
|
||||
}
|
||||
|
||||
|
||||
func (bm *NullCache)Get(key string) interface{} {
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user