Questions tagged [booksleeve]

Booksleeve is a Redis client written in C# offering pipelined, asynchronous, multiplexed and thread-safe operations.

Booksleeve is a Redis client written in C# offering pipelined, asynchronous, multiplexed and thread-safe operations even for the busiest applications.

In March 2014, Stack Exchange switched from BookSleeve to the new StackExchange.Redis for multiple reasons listed here

Both BookSleeve and StackExchange.Redis were created by Marc Gravell - one of the members of the Stack Exchange team - to address specific performance goals by creating an asynchronous API to interface with Redis in .NET.

Further information about the inception and purpose of this project is available in this post from Marc's blog.

82 questions
1
vote
1 answer

The proper way to retrieve a sorted set from Redis using BookSleeve

As per some suggestions, I am using Redis' ZADD through BookSleeve's SortedSets.Add() to save data in a chronological order as follows: TimeSpan span = DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1, 0, 0, 0)); _connection.SortedSets.Add(_db,…
ElHaix
  • 12,846
  • 27
  • 115
  • 203
1
vote
1 answer

Options for performing ZINTERSTORE with Booksleeve?

I've been using Booksleeve as my redis driver in C# and have been quite happy with it - but I have come across the need to do some work with sorted sets. It appears that these only have minimal support within Booksleeve - there are no…
rejj
  • 1,216
  • 7
  • 13
1
vote
1 answer

How can i send random commands to redis?

I am using redis via booksleeve on c#/.NET Lets say i want to send an unimplemented command like SCRIPT FLUSH or EVAL. How do i do so with booksleeve? Also i'm not sure if echo is implemented so using that as an example would be cool.
user34537
1
vote
1 answer

Redis: How do i INCR and insert?

I have the CLI open and a .NET dummy solution open. I would like to create a user and insert some data in one go. How in the CLI/REPL i wrote this redis 127.0.0.1:6379> incr userCount (integer) 1 redis 127.0.0.1:6379> set user:1:name acid OK redis…
user34537
1
vote
1 answer

Booksleve: what Redis version to use?

With reference to this post about Booksleeve and to the fact that there is not an official Windows Redis distribuition, what is the best practice? Is better to compile on Win32 or the "Unofficial" win32/64 distribuition is reliable and mantained ?
Felice Pollano
  • 32,832
  • 9
  • 75
  • 115
1
vote
1 answer

Should null strings on Booksleeve redis client cause timeouts?

So I have this unit test: [TestMethod] public void TestNullString() { String expectedTestValue = null; var uid = Guid.NewGuid().ToString(); redis.Wait(redis.Strings.Set(db, uid, expectedTestValue)); var testValue =…
Joel Clark
  • 549
  • 2
  • 14
1
vote
1 answer

How do I return a C# bitarray from Redis with Booksleeve

I may be approaching this all wrong, but I would like to use a REDIS bitmap to track activity within my application. I have a piece of code like the following: using (var conn = new RedisConnection("localhost")) { conn.Open(); …
JP.
  • 5,536
  • 7
  • 58
  • 100
1
vote
1 answer

Booksleeve - Setting multiple Hash Values and retrieve them at once

I'm trying to set multiple fields of a hash independently and retrieve them all at once later on. Is the code below supposed to work or am doing something wrong here? When I run it locally against redis-2.0.0-x64 on Windows downloaded from the…
Oliver Weichhold
  • 10,259
  • 5
  • 45
  • 87
1
vote
1 answer

Redis on Appharbor - Booksleeve GetString exception

i am trying to setup Redis on appharbor. I have followed their instructions and again i have an issue with the Booksleeve API. Here is the code i am using to make it work initially: var connectionUri = new Uri(url); …
Faris Zacina
  • 14,056
  • 7
  • 62
  • 75
1
vote
2 answers

Basic Booksleeve plus Protobuf-net plus Lists/SortedSets, implementations?

I have some fairly basic questions regarding the use of booksleeve in conjunction with protobuf-net. Now I have implemented a singleton class to manage the connections so I am reusing the same connection many times as recommended. Now I several…
tamaslnagy
  • 431
  • 1
  • 7
  • 16
1
vote
1 answer

How to use a singleton for storing the RedisConnection with Booksleeve?

I'm using Booksleeve 1.1.0.6 (the latest nuget package). I want so use a single connection for my whole Web Application so I'm storing it in a singleton: public static RedisConnection Conn = RedisConfig.GetUnsecuredConnection(waitForOpen:…
Carlos Mendes
  • 1,900
  • 1
  • 18
  • 33
0
votes
1 answer

What is the proper way to retrieve string key/values from Redis using BookSleeve

I'm new to BookSleeve and it seems that the API has changed even when compared to what is documented in the website. AS it is noted in the website: "Note the API may change a little going to 1.0, but is stable enough to drive Stack Exchange.." So it…
agarcian
  • 3,909
  • 3
  • 33
  • 55
0
votes
3 answers

What is the equivalent of Sets.GetAllString() from BookSleeve in StackExchange.Redis?

In BookSleeve there is a connection.Sets.GetAllString() method. What is the equivalent in StackExchange.Redis? Thanks!
Fabian Nicollier
  • 2,811
  • 1
  • 23
  • 19
0
votes
1 answer

Redis Cache Static List search by filter

I have a static Object List about 500 items. This Object has property like (id [int],Name [string], attribute1 [string], attribute2 [string]). I have serialized this object into string and stored into redis as a string key value. But I need to…
Justin Homes
  • 3,739
  • 9
  • 49
  • 78
0
votes
1 answer

Redis 2.4 / CentOS 6.2 network throughput dips every 4 minutes... Redis... or client related?

we've encountered some strange performance dips yesterday on our Redis 2.4 / CentOS 6.2 cache servers. They cycle every 4 minutes. Here's a screenshot from New Relic of the master…
baskabas
  • 333
  • 3
  • 5
  • 15