https://github.com/redislabs/memcache_populator
Python script for populating a memcahed sever from GarantiaData exported CSV files.
https://github.com/redislabs/memcache_populator
Last synced: about 1 year ago
JSON representation
Python script for populating a memcahed sever from GarantiaData exported CSV files.
- Host: GitHub
- URL: https://github.com/redislabs/memcache_populator
- Owner: RedisLabs
- Created: 2012-07-17T15:39:24.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2014-02-09T22:44:52.000Z (over 12 years ago)
- Last Synced: 2025-04-06T17:03:40.441Z (about 1 year ago)
- Language: Python
- Size: 148 KB
- Stars: 6
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Redis Labs (formerly Garantia Data) CSV memcached populator
This utility populates a memcached server from the keys, values and metadata available in Redis Labs exported CSV files.
#CSV file format
Each row in the CSV represents a single key-value pair. The CSV has 4 columns in the following order:
1. Key - C style encoded string
2. Value - C style encoded string
3. Flags - the memcached flags value for this key - a hexadecimal integer.
4. Expiry time - either 0 for no expiry or the unixtime expiry value - an unsigned decimal integer.
Example of a line in the CSV:
```
key_name,some text including some binary data:\xff\x00,1F,292161600
```
Note that if the key or value include any commas, forward slashes or non printable chars they need to be escaped.
[](http://githalytics.com/RedisLabs/memcache_populator)