vulcan 0.1.1

The highly logical way to populate Redis with random data

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
MIT/X Consortium License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Ted Nyman
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
To set up vulcan you'll need redis-py: http://github.com/andymccurdy/redis-py

Say you want to SET ten thousand keys, with randomly generated values.

Here's all you need to do:

First, create a Vulcan object like so:

 from vulcan import Vulcan

 s = Vulcan(10000)


The default is to populate with strings, but to be explicit you could do:

 s = Vulcan(10000, 'strings')

For lists, sets, or sorted sets:

 lists = Vulcan(10000, 'lists')

 sets = Vulcan(10000, 'sets')

 zsets = Vulcan(10000, 'zsets')


Now just:

 s.populate()


That will clear out database 6, and populate it with your random data. You're all set.

The keys are given random integer key names, and the values and scores are also given random integers. Next version, I'll likely add in some other options for random values (probably Star Trek-based).

That's all there is to it. You are now bursting with Redis data. Live long, and prosper.

Last updated on April 6th, 2010

requirements

#populate Redis #random data #Redis data #Redis #populate #random #data

Add your review!

SUBMIT