Commit a845dc1a authored by Ivan Tyagov's avatar Ivan Tyagov

Initial import of various Cache plugins.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11029 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 49b94b4b
...@@ -30,8 +30,6 @@ ...@@ -30,8 +30,6 @@
Base Cache plugin. Base Cache plugin.
""" """
#from Products.ERP5Cache.interfaces import ICache
import time import time
class CachedMethodError(Exception): class CachedMethodError(Exception):
...@@ -78,7 +76,6 @@ class CacheEntry(object): ...@@ -78,7 +76,6 @@ class CacheEntry(object):
class BaseCache(object): class BaseCache(object):
""" Base Cache class """ """ Base Cache class """
#__implements__ = (ICache,)
## Time interval (s) to check for expired objects ## Time interval (s) to check for expired objects
cache_expire_check_interval = 60 cache_expire_check_interval = 60
......
...@@ -40,7 +40,7 @@ except ImportError: ...@@ -40,7 +40,7 @@ except ImportError:
MEMCACHED_SERVER_MAX_KEY_LENGTH = memcache.SERVER_MAX_KEY_LENGTH MEMCACHED_SERVER_MAX_KEY_LENGTH = memcache.SERVER_MAX_KEY_LENGTH
## number of seconds before creating a new connection to memcached server ## number of seconds before creating a new connection to memcached server
KEEP_ALIVE_MEMCACHED_CONNECTION_INTERVAL = 30 ##KEEP_ALIVE_MEMCACHED_CONNECTION_INTERVAL = 30
class DistributedRamCache(BaseCache): class DistributedRamCache(BaseCache):
""" Memcached based cache plugin. """ """ Memcached based cache plugin. """
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
# #
############################################################################## ##############################################################################
"Local RAM based cache" "Dummy (no cache)"
from BaseCache import * from BaseCache import *
import time import time
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
# #
############################################################################## ##############################################################################
""" """
Local RAM based cache plugin. Local RAM based cache plugin.
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment