redis

sort large data in redis

how to sort large data in redis? ...

Python: Redis as session backend to Beaker

Anyone had success with using Redis as Beaker backend? Can you tell me link or library how to do it? I am looking for any library which does this but could not get anything out of google search. ...

Access Redis from relational databases

Is there any way to access Redis data from relational databases, such as Oracle or SQL Server? One use case I have in mind is ETL to a data warehouse. ...

Using redis' list data structure or a serialized ruby hash for storing data

Greetings, I want to store some data in a redis db and don't know which way I should go. The data is equivalent to something like an address with the variables name, street and number. They will be stored under the lower cased name as key, there won't be doublets. Now, should I save it as a list or should I serialize the hash ({:name =...

Is a redis instance can only work for 1 project?

I'm using Rails with redis. From the introduction of Redis, I found such information: start redis server: redis-server use redis client: > redis-cli redis> set key value OK redis> get key "value" From the sample, I have a question: Is a redis instance can only work for 1 project? You can see, there is no "database" or "collectio...

Strange "no such file to load -- redis-namespace" exception when start rails server

I'm using Rails 2.3.8 + redis + resque + redis-namespace This is part of my environment.rb config.gem 'jrails' config.gem 'haml' config.gem 'redis' config.gem 'redis-namespace' config.gem 'resque This is my gem list redis (2.0.3) redis-namespace (0.7.0) resque (1.9.7) When I start my server by 'script/server', it show su...

Where can I config the redis just once?

I'm using rails 2.3.8 and redis. In my controllers, each time I want to access redis, I will create a new Redis object, like: class AbcController < ApplicationController def index redis => Redis.new redis.xxx end def list redis => Redis.new redis.xxx end end I feel this is very bad, and I have some questi...

How to change the default sleep time (5s) of resque?

I'm using Rails with resque. The "sleep time" is the seconds of a worker sleeping after it can't find any new tasks. The worker is created by QUEUE=* rake environment resque:work, and the default value is 5s, I can't to change it to 2s. I have searched for this problem for several hours, somebody can help me? ...

How to set expire time when add a task to resque?

I'm using Rails with Resque. I know the command of redis-cli is: expire key 100 But I don't know how to set the expire time when adding a task to resque, what should I do? ...

phpredis on fedora 12

hello, am trying to install phpredis to work with my php. but the thing is, everytime i try to get it to work, my error_log sends this error. [code]PHP Fatal error: Class 'Redis' not found in /var/www/html/testme.php on line 5[/code] i have downloaded the source code from http://github.com/owlient/phpredis and then phpize ./configur...

Is there MGET analog for Redis hashes?

Hello, I'm planning to start using hashes insead of regular keys. But I can't find any information about multi get for hash-keys in Redis wiki. Is this kind of command is supported by Redis? Thank you. ...

Redis access from MS Excel?

I would like to use redis to query data from commandline, scripts, web and from within spreadsheets. I can find good examples for all but spreadsheets... I don't quite know where to start for access from a MS Excel spreadsheet, though. Google is failing me. Please let me know how you would suggest doing this, thanks! p.s. for those u...

redis config question?

I am using redis for caching but recently I ran into a problem with the amount of memory used - had to restart my server since all ram had been consumed. It's not the biggest machine but how should I configure redis to avoid the same problem again? free -m total used free shared buffers cached Mem: ...

Redis (1.2.6) : Slow queries

Hi All, We are using Redis 1.2.6 in production environment. There are 161804 keys in redis. Machine has 2GB RAM. Problem: Select queries to Redis are taking 0.02 sec on an average. But some times they take 1.5-2.0 secs, I think whenever redis save modified keys on disk. One strange thing I noticed before and after restarting the redi...

Redis key management

So im working with redis in a python app. any advice on key management? i try and keep all redis calls in one location but something seems off with hardcoding keys everywhere. tips? ...

Suggest a simple NoSQL database for java project

I am developing a simple internal use application with an intended user base of around 100 people. The application does a lot of reads and very few writes. The dataset size is fairly small and we do not want to use a RDBMS if possible. In fact, the relational requirements are fairly small. I am looking at using some NoSQL database and I ...

What's the best way to write Resque-related specs in RSpec?

What's the best way to write Resque-related specs in RSpec without stubbing the former? We currently use the following helper: @dir = File.dirname(File.expand_path(__FILE__)) def start_redis `redis-server #{@dir}/redis-test.conf` Resque.redis = "localhost:9736" end def stop_redis `rm -f #{@dir}/dump.rdb` pid = `ps -A -o pid,c...

What should I choose: MongoDB/Cassandra/Redis/CouchDB?

Hi, We're developing a really big project and I was wondering if anyone can give me some advice about what DB backend should we pick. Our system is compound by 1100 electronic devices that send a signal to a central server and then the server stores the signal info (the signal is about 35 bytes long). How ever these devices will be se...

Redis returns an error when attempting to save

When running the SAVE command in redis-cli for Redis 1.3.15 it just returns "(error) ERR", BGSAVE does not appear to do anything either. The SHUTDOWN command returns "(error) ERR Errors trying to SHUTDOWN. Check logs.". Killing the Redis process and starting Redis again does not change the save error. Naturally I have tried to check the...

Difference between Document-based and Key/Value-based databases?

I know there are three different, popular types of non-sql databases. Key/Value: Redis, Tokyo Cabinet, Memcached ColumnFamily: Cassandra, HBase Document: MongoDB, CouchDB I have read long blogs about it without understanding so much. I know relational databases and get the hang around document-based databases like MongoDB/CouchDB. ...