2014-03-27 17:06:03 -04:00
|
|
|
from textwrap import dedent
|
|
|
|
|
|
|
|
try:
|
2014-04-23 02:24:08 -04:00
|
|
|
from .file_cache import FileCache
|
2014-03-27 17:06:03 -04:00
|
|
|
except ImportError:
|
|
|
|
notice = dedent('''
|
|
|
|
NOTE: In order to use the FileCache you must have
|
|
|
|
lockfile installed. You can install it via pip:
|
|
|
|
pip install lockfile
|
|
|
|
''')
|
|
|
|
print(notice)
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
import redis
|
2014-04-23 02:24:08 -04:00
|
|
|
from .redis_cache import RedisCache
|
2014-03-27 17:06:03 -04:00
|
|
|
except ImportError:
|
|
|
|
pass
|