You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
497 B
20 lines
497 B
12 years ago
|
#!/usr/bin/env python
|
||
|
# -*- coding: utf-8 -*-
|
||
|
#-----------------------
|
||
|
# Name: cache_null.py
|
||
|
# Python Library
|
||
|
# Author: Raymond Wagner
|
||
|
# Purpose: Null caching engine for debugging purposes
|
||
|
#-----------------------
|
||
|
|
||
|
from cache_engine import CacheEngine
|
||
|
|
||
|
class NullEngine( CacheEngine ):
|
||
|
"""Non-caching engine for debugging."""
|
||
|
name = 'null'
|
||
|
def configure(self): pass
|
||
|
def get(self, date): return []
|
||
|
def put(self, key, value, lifetime): return []
|
||
|
def expire(self, key): pass
|
||
|
|