Files
CouchPotatoServer/libs/tmdb3/cache_null.py
2014-02-16 10:48:48 +01:00

28 lines
531 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