Skip to main content

Useful when a seeded redis database is needed during test-cycles

Overview

  • helpers for seeding / clearing local redis databases during testing

  • Functions

  • dump_to_file(path, redis_conn = None, host = “localhost”, port= 6379 ) - create a pickled dump of redis

  • load_from_file(path, redis_conn = None, host = “localhost”, port= 6379 ) - load a pickled file into redis

  • clear(redis_conn = None, host = “localhost”, port= 6379 ) - clear a redis database

  • This is good for any testing environment and works well in a setup / breadkown Nose testing environment

Metadata

Release files for redis-utils 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for redis-utils 1.0.5
File Size Uploaded
redis-utils-1.0.5.tar.gz 2.9 kB Details

Release files / redis-utils-1.0.5.tar.gz

Download URL redis-utils-1.0.5.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7ed9011e67f593b15392988691e85479e0d02e192dfecfee37eb49cd34ae5ccd
BLAKE2b-256 checksum
How to use checksums
c23562a4b5503e8e18d51b97a3b7f4eeec2bb3a7f289b1788391150554b5fbfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.5 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page