Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 66 lines (47 sloc) 2.021 kb
564bea5d »
2011-05-01 Initial commit
1
1fd902cc »
2011-05-01 renamed to rediskit
2 # RedisKit
564bea5d »
2011-05-01 Initial commit
3
45289b96 »
2011-05-01 docs
4 Collection of Redis backed data structures for nodejs. RedisKit aims to create first-class JavaScript objects of the primitives that Redis provies as well as higher level abstractions and interactions between the data types.
564bea5d »
2011-05-01 Initial commit
5
6 ## Structures
7
88834fc1 »
2011-05-01 Base -> Key
8 - Key
3da67e8d »
2011-05-01 hierarchy
9 - List
10 - Queue
aa9bf4ab »
2011-05-11 docs
11 - CappedList
5161b5ee »
2011-05-01 docs
12 - Hash
564bea5d »
2011-05-01 Initial commit
13
1fd902cc »
2011-05-01 renamed to rediskit
14 ## Installation
15
16 $ npm install rediskit
17
a4818fa7 »
2011-05-02 example
18 ## Example
19
20 var list = new List('pets')
1519f8c7 »
2011-05-03 docs
21 , tobi = new Hash('pet:tobi')
22 , loki = new Hash('pet:loki')
23 , jane = new Hash('pet:jane');
a4818fa7 »
2011-05-02 example
24
25 list.rpush('tobi');
26 list.rpush('jane');
27 list.rpush('loki');
28
29 tobi.set('age', 1);
30 loki.set('age', 0.5);
31 jane.set('age', 3);
32
33 list.sort.by('pet:*->age').get('#').get('pet:*->age').end(function(err, res){
34 res.should.eql(['loki', '0.5', 'tobi', '1', 'jane', '3']);
35 });
36
564bea5d »
2011-05-01 Initial commit
37 ## Running Tests
38
c0628116 »
2011-05-02 alter `make test` for npm 1.x
39 $ npm install
1f1b69eb »
2011-05-01 added example
40 $ redis-server
d0873e7b »
2011-05-01 docs
41 $ make test
564bea5d »
2011-05-01 Initial commit
42
43 ## License
44
45 (The MIT License)
46
47 Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
48
49 Permission is hereby granted, free of charge, to any person obtaining
50 a copy of this software and associated documentation files (the
51 'Software'), to deal in the Software without restriction, including
52 without limitation the rights to use, copy, modify, merge, publish,
53 distribute, sublicense, and/or sell copies of the Software, and to
54 permit persons to whom the Software is furnished to do so, subject to
55 the following conditions:
56
57 The above copyright notice and this permission notice shall be
58 included in all copies or substantial portions of the Software.
59
60 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
61 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
62 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
63 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
64 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
65 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
66 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Something went wrong with that request. Please try again.