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

Store forum messages using Redis & Booksleeve

I have the following class witch stores a message in a forum using System; using System.Collections.Generic; public partial class ForumMessage { public ForumMessage() { this.Votes = new HashSet(); …
PanKak
  • 133
  • 12
1
vote
1 answer

Get object properties with reflection except instance properties

I want to enumerate all object properties using reflection but i want to exclude the properties that reference objects (this should be fast enough because i'm using in a caching solution using Redis/Booksleve). Currently i have the following but…
PanKak
  • 133
  • 12
1
vote
1 answer

How to work with numeric/integer values in Redis with Booksleeve

I'm currently using an in-memory cache and looking to switch to a distributed caching mechanism with Redis. I had a look at ServiceStack's client, but the rate-limiting licensing doesn't work for me, so Booksleeve seems to be recommended. I've set…
Chris
  • 4,663
  • 5
  • 24
  • 33
1
vote
1 answer

Redis Booksleeve, temporary set

I need to do an Except operation between an existing set and some values coming as input from a user. How can I do this inte best way? I was first thinking about using a temporary set where I store the values from the user. Will that work in a…
Thomas
  • 469
  • 6
  • 16
1
vote
2 answers

Booksleeve setting expiration on multiple key/values

Unless I am missing something, I don't see a Multiple Set/Add overload that allows you to set multiple keys with an expiration. var conn = new RedisConnection("server"); Dictionary
Chad Grant
  • 44,326
  • 9
  • 65
  • 80
1
vote
1 answer

Redis Booksleeve Weight option for SortedSets.UnionAndStore?

I have am building an alert mechanism using Booksleeve and Redis. Currently I'm to the point where I have a sorted set that contains items (call it set A) I want to report on and a sorted set that has members that I want to exclude from alerts (call…
CuriousLayman
  • 207
  • 1
  • 10
1
vote
1 answer

Calling PUBSUB commands?

Is there any way to call the newer PUBSUB methods (http://redis.io/commands/pubsub) short of forking the BookSleeve repo? Everywhere I look I hit a dead end. For example, to call "PUBSUB CHANNELS", in looking at RedisConnectionBase, I could call…
Tim Schmidt
  • 1,855
  • 3
  • 21
  • 21
1
vote
1 answer

How to call BGSAVE from BookSleeve?

Anyone can tell me how to call command BGSAVE from BookSleeve to Redis? I search a lot in BookSleeve available methods but not found any commands relative to SAVE or BGSAVE. Thanks!
langtu
  • 1,198
  • 1
  • 10
  • 23
1
vote
1 answer

in booksleeve how do I iterate through all the keys in given db

I´m using booksleeve (and it is awesome) to access redis from C#. The only thing I lack is api documentation (or perhaps I haven´t found it?). I need to flush redis db to sql server, so I need to iterate through all the keys in redis db. How is this…
ren
  • 3,843
  • 9
  • 50
  • 95
1
vote
2 answers

Remove SortedSet using BookSleeve

I have around 336 keys that i am trying to remove which are SortedSets, i am using BookSleeve as C3 Client with Redis on Ubuntuserver. the code below works, but if i remove the Console.WriteLine it randomly does not delete around 100 keys. it does…
Justin Homes
  • 3,739
  • 9
  • 49
  • 78
1
vote
1 answer

BookSleeve - Poor Performance When Setting Hashes

I'm in the process of updating my web service to use the latest BookSleeve library, 1.3.38. Previously I was using 1.1.0.7 While doing some benchmarking, I noticed that setting hashes in Redis using the new version of BookSleeve is many times slower…
burnsuv
  • 13
  • 2
1
vote
1 answer

Redis HashKey erroring out

I created a HaskKey using Boolsleve c#, i am providing a unique field each time and my item is Json string. public virtual void AddHashSetKey(string item, string hashField) { _redisClient.Hashes.Set(_database, Key, hashField, item); …
Justin Homes
  • 3,739
  • 9
  • 49
  • 78
1
vote
1 answer

Cache async error from BookSleeve Redis client

BookSleeve is very good in performance because it use async IO as much as could. But the problem is, it may throw fatal exception from asynchronous operation and crash my application. I know that keyword await can help, but I can't use await for…
Mr.Wang from Next Door
  • 13,670
  • 12
  • 64
  • 97
1
vote
1 answer

Dealing with Int64 value with Booksleeve

I have a question about Marc Gravell's Booksleeve library. I tried to understand how booksleeve deal the Int64 value (i have billion long value in Redis actually) I used reflection to undestand the Set long value overrides. //…
baz
  • 151
  • 1
  • 9
1
vote
1 answer

Booksleeve closing connection prematurely?

I am having difficulty with the 1.1.0.5 version of Booksleeve in VS2010 working the way I intend to use it. What's happening is after perform and wait for an operation, Booksleeve sometimes leaves the connection in a closed state, so operations…
AniAko
  • 139
  • 1
  • 8