Git Product home page Git Product logo

stackredis.l1's People

Contributors

johnnycardy avatar stepaside avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

stackredis.l1's Issues

Allow a client to specify a mandatory expiry timespan

The risk to data validity in this project is that data may become stale if keyspace notifications are not delivered. Delivery is not guaranteed.

For that reason, it should be possible to expire in-memory cached data after a specific minimum interval.

Constructor error

There's an error in constructor: StackRedis.L1.RedisL1Database(IDatabase redisDb)

Method 'HashStringLength' in type 'StackRedis.L1.RedisL1Database' 
from assembly 'StackRedis.L1, Version=0.2.1.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

Package versions used:

  <package id="StackExchange.Redis" version="2.2.88" targetFramework="net462" />
  <package id="StackRedis.L1" version="0.2.1" targetFramework="net462" />
  <package id="CachingFramework.Redis" version="12.0.6" targetFramework="net462" />

Connection is valid, able to work with db using StackExchange.Redis.IDatabase instance

Strange GeoAdd method error.

I've got strange error of a type: System.TypeLoadException with StackExchage.Redis v.1.2.4

Method 'GeoAdd' in type 'StackRedis.L1.RedisL1Database' from assembly 'StackRedis.L1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

Use L1 with ASP.NET Core distributed cache

I cannot get StrackRedis.L1 to work with ASP.NET Core distributed cache.

It's configured as following:

services.AddStackExchangeRedisCache(options =>
                    {
                        options.Configuration = distributedCacheConfig.ConnectionString;
                        options.ConnectionMultiplexerFactory = async () =>
                        {
                            var mux = await ConnectionMultiplexer.ConnectAsync(options.Configuration);
                            _ = new StackRedis.L1.RedisL1Database(mux.GetDatabase());
                            return mux;
                        };
                    });

When running the application the RedisL1Database constructor gets called with no errors. However it does not seems like the in-memory cache layer is being used at all and Redis is instead being used as normal. Expecting the console to write mem cache hits. Also tired to set breakpoints inside L1 project with no hits.

I'm are running master of this project with Microsoft.Extensions.Caching.StackExchangeRedis/6.0.1 and StackExchange.Redis/2.2.4.

Should L1 work with ASP.NET Core distributed cache?
Is there anything wrong in my configuration?

Concurrency error - reproduce with unit test and fix

Getting this error. Possibly caused by multiple concurrent clients operating on the disjointed set.

Need to reproduce with a unit test.

Collection was modified after the enumerator was instantiated., Stack Trace: at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.SortedSet1.Enumerator.MoveNext() at System.Linq.Enumerable.<SelectManyIterator>d__12.MoveNext()
at StackRedis.L1.MemoryCache.Types.SortedSet.DisjointedSortedSet.Add(SortedSetEntry[] entries, Nullable1 knownMin, Nullable1 knownMax)
at StackRedis.L1.MemoryCache.Types.SortedSet.MemorySortedSet.AddDiscontinuous(String key, SortedSetEntry[] entries)
at StackRedis.L1.RedisL1Database.SortedSetAdd(RedisKey key, SortedSetEntry[] values, CommandFlags flags)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.