Files
CouchPotatoServer/libs/tmdb3/cache_null.py
2013-09-02 14:10:31 +02:00

20 lines
497 B
Python
Executable File

#!/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