redismap /

Filename Size Date modified Message
docs
redismap
tests
76 B
1.0 KB
915 B
96 B
46 B
1.3 KB

Redismap

Redismap is a library for working with Python objects stored in a Redis database. It includes:

  • An object-hash mapper.
  • Wrappers for Redis' collection types that allow complex types to be stored.
  • Implementations of important usage patterns like locks.
  • A Key class that allows one to structure their keys hierarchically.

Tests

The tests require Attest to run. The tests themselves are not included in the actual redismap package, instead they are in the tests package. You can run them with runtests.py.

You can set environment variables to control the test. REDISMAP_TEST_HOST and REDISMAP_TEST_PORT are used to select the Redis server to use, and REDISMAP_TEST_DBNO sets the database number. They default to localhost, 6379, and 0 respectively. Setting REDISMAP_TEST_QUICKLY skips tests that involve blocking and timing.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.