{"repo":"WeihanLi/WeihanLi.Redis","free":true,"listed":false,"github":"https://github.com/WeihanLi/WeihanLi.Redis","clone":"git clone https://github.com/WeihanLi/WeihanLi.Redis.git","description":"RedisExtensions for StackExchange.Redis, Cache/Redlock/Counter/RateLimiter/Rank/RedisEventBus","language":"C#","stars":49,"topics":["redis","csharp","redis-client","stackexchange-redis","weihanli"],"license":"MIT","category":"databases-storage","readme_excerpt":"WeihanLi.Redis English Build Intro RedisExtensions for StackExchange.Redis, much more easier for generic opeartions,and supply some extensions for your business logics. StackExchange.Redis 扩展，更简单的泛型操作，并提供一些的适用于业务场景中的扩展 基于 Redis 的五种主要的数据类型做了一些扩展： 1. String - Cache - Counter - Firewall - RedLock - RateLimiter 1. Hash - Hash - Dictonary - HashCounter 1. List - List - Queue - Stack 1. Set - Set 1. SortedSet - SortedSet - Rank GetStarted Installation 安装 Install from Nuget 通过 Nuget 安装 WeihanLi.Redis Configuration 配置 对于 V1.0.6 及以下版本支持 .netframework4.5 配置参考： 1. 日志配置，日志基于 log4net 的配置，可以参考单元测试中的 log4net.config 的配置，将 log4net.config 放在项目根目录下【推荐】 如果不在项目根目录下或者文件名发生修改则需要自己手动调用 LogHelper.LogInit(\"log4net.config\"); 2. Redis 配置 .net core 应用，还可以这样配置 对于 1.1 及以上版本不再支持 dotnet framework，配置方式如下： Basic usage 基本用法 1. Cache 缓存 缓存的基本操作主要是基于 RedisManager.CacheClient 缓存的基本操作定义在 ICacheClient 中，基本操作如下： 1. Counter 计数器 1. Firewall 防火墙 1. RedLock Redis分布式锁 1. Rank 排行榜 1. 依赖注入 1. 更多用法等你来发现...","default_branch":null,"files":null,"tree":[],"storefront":"/r/WeihanLi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/WeihanLi/WeihanLi.Redis/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}