Use redis as a persistence layer for Whoosh and Haystack
Project description
A Whoosh storage engine using redis for persistence. A Haystack SearchBackend subclass is also provided. Normally the STORAGE key could just be set but Haystack 2.0.0alpha is only aware of file and ram backends.
This is especially useful for small sites hosted on Heroku, which does not allow writing to local disk. The REDISTOGO_URL environment variable is read, falling back to the localhost default port.
Usage
Configure your Haystack connections in settings.py:
import tempfile HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack_redis.RedisEngine', 'PATH': tempfile.gettempdir(), }, }
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
haystack-redis-0.0.1.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for haystack_redis-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fdeee5a9d8daadb1fed4584fd2ffbb25b1ed2315dacb97b53093756d6b54467 |
|
MD5 | 8cb4700aacccf2ca0de5093288df48cf |
|
BLAKE2b-256 | f0e35b5c37f581d1074816a330a6a62a3133bd4067c2e91064e4558694fa6c0c |