This commit is contained in:
astaxie
2013-07-16 19:05:44 +08:00
parent 60200689f4
commit 7f4ad7ff46
5 changed files with 111 additions and 0 deletions

8
cache/memcache.go vendored
View File

@@ -51,6 +51,14 @@ func (rc *MemcacheCache) Delete(key string) error {
return err
}
func (rc *MemcacheCache) Incr(key string) error {
return errors.New("not support in memcache")
}
func (rc *MemcacheCache) Decr(key string) error {
return errors.New("not support in memcache")
}
func (rc *MemcacheCache) IsExist(key string) bool {
if rc.c == nil {
rc.c = rc.connectInit()