booksleeve

Redis backed ASP.NET SessionState provider [closed]

佐手、 提交于 2021-02-05 12:38:15
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I'm currently developing an ASP.NET SessionState custom provider that is backed by Redis using Booksleeve. Redis seemed like a perfect

How often should I open/close my Booksleeve connection?

自古美人都是妖i 提交于 2020-01-22 13:23:23
问题 I'm using the Booksleeve library in a C#/ASP.NET 4 application. Currently the RedisConnection object is a static object across my MonoLink class. Should I be keeping this connection open, or should I be open/closing it after each query/transaction (as I'm doing now)? Just slightly confused. Here's how I'm using it, as of now: public static MonoLink CreateMonolink(string URL) { redis.Open(); var transaction = redis.CreateTransaction(); string Key = null; try { var IncrementTask = transaction

How to use StackExchange.Redis ConnectionMultiplexer with SignalR.Redis (2.2)

夙愿已清 提交于 2019-12-24 03:36:22
问题 Currently SignalR.Redis is using Booksleeve. However, SignalR.Redis has now migrated to StackExchange.Redis instead of Booksleave in the signalR.Redis (2.2 Dev Branch). We can still specify a single Redis server using the same code after upgrading to 2.2: GlobalHost.DependencyResolver.UseRedis("localhost", 6379, string.Empty, "myApp"); However, I am now wondering how I can use the ConnectionMultiplexer (available in StackExchange.Redis) to specify multiple servers with SignalR.Redis (instead

How to save and retrieve channel data from Redis (pub/sub) with date ranges?

时光怂恿深爱的人放手 提交于 2019-12-24 00:48:51
问题 Initially I asked about querying .rdb files which is not what I want to do - I will be querying an active server. I am about to start a project where we will use Redis in a pub/sub scenario, using RDB snapshotting. A .Net WCF client will configure the Redis connection through Marc Gravell's BookSleeve and accept incoming requests. With RDB snapshotting enabled, incremental snapshots will be created. I want a client to be able to retrieve a dataset based on a given channel and date range. I

implementing out-of-process cache using Redis in windows azure

拈花ヽ惹草 提交于 2019-12-18 11:36:22
问题 I've been working on a webpage that displays a table from a database I have in my azure cloud. In order to reduce calls to the DB directly for performance improvement I would like to build a cache for the page. Currently, I hold an in-memory cache (in-process) for the reads of the table. Now I would like to make an out-of-process cache, that should be updated from when writes are made, meaning inserts or updates (because after a value is updated or added, the in-memory cache will be no longer

How to search content value in redis by BookSleeve

风格不统一 提交于 2019-12-11 15:39:16
问题 I want to search in content use redis ,Is such a thing possible؟ for example : class Post { public string Id { get; set; } public string Content { get; set; } public bool Deleted { get; set; } } I use c# and BookSleeve ,I want to search a word in "Content" property of post if the "Deleted" property of post is false, i can use HSET and serialize this object to store in redis or SADD or ... 1- What is the best way to store this object? 2- What is the best way to search and filter object for

How to call BGSAVE from BookSleeve?

与世无争的帅哥 提交于 2019-12-11 13:54:21
问题 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! 回答1: Yes, it would seem that I never got around to adding that; I don't think SHUTDOWN is there either. In both cases, I expect they simply weren't things that are commonly performed at the reqest if a client - but are usually either automated (persistence configuration), or instigated at the command line

StackExchange TimeoutException when trying to insert 750 items in 2 sets in redis

喜欢而已 提交于 2019-12-10 09:52:49
问题 Initially I'm trying to insert some collection of items into 2 redis sets (maybe this is not good idea at all, but ...). amount of entries that I'm trying to add at once: 750+ For now I do receive timeout exception when trying to perform this action using StackExchange.redis client, the interesting thing that I'm able to complete similar action using "legacy" booksleeve client I've investigated previously. So, I definitely wrong in something (even maybe in my intial bookSleeve implementation)

How does PubSub work in BookSleeve/ Redis?

烈酒焚心 提交于 2019-12-06 08:15:27
问题 I wonder what the best way is to publish and subscribe to channels using BookSleeve. I currently implement several static methods (see below) that let me publish content to a specific channel with the newly created channel being stored in private static Dictionary<string, RedisSubscriberConnection> subscribedChannels; . Is this the right approach, given I want to publish to channels and subscribe to channels within the same application (note: my wrapper is a static class). Is it enough to

Redis connection errors when using Booksleeve Redis client in Azure VM

亡梦爱人 提交于 2019-12-06 01:45:35
问题 I've recently started hosting a side project of mine on the new Azure VMs. The app uses Redis as an in-memory cache. Everything was working fine in my local environment but now that I've moved the code to Azure I'm seeing some weird exceptions coming out of Booksleeve. When the app first fires up everything works fine. However, after about 5-10 minutes of inactivity the next request to the app experiences a network exception (I'm at work right now and don't have the exact error messages on me