We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can RedisDBOptions add the KeyPrefix attribute to enable?
/// <summary> /// Redis cache options. /// </summary> public class RedisDBOptions : BaseRedisOptions { ..... /// <summary> /// Gets or sets the Redis database KeyPrefix will use. /// </summary> public string KeyPrefix { get; set; } } // RedisDatabaseProvider /// <summary> /// Gets the database connection. /// </summary> public IDatabase GetDatabase() { try { var database = _connectionMultiplexer.Value.GetDatabase(); if (!string.IsNullOrEmpty(_options.KeyPrefix)) database = database.WithKeyPrefix(_options.KeyPrefix); return database; } catch (Exception) { _connectionMultiplexer = new Lazy<ConnectionMultiplexer>(CreateConnectionMultiplexer); throw; } }
The text was updated successfully, but these errors were encountered:
feat: SERedis Support KeyPrefix Feature dotnetcore#325
c332255
Merge pull request #326 from vla/dev
6850599
feat: SERedis Support KeyPrefix Feature #325
No branches or pull requests
Can RedisDBOptions add the KeyPrefix attribute to enable?
The text was updated successfully, but these errors were encountered: