{"id":29890029,"url":"https://github.com/aoxetech/aoxe.redis","last_synced_at":"2025-07-31T22:23:33.138Z","repository":{"id":56304568,"uuid":"136126397","full_name":"AoxeTech/Aoxe.Redis","owner":"AoxeTech","description":"Redis wrappers by StackExchange.Redis","archived":false,"fork":false,"pushed_at":"2025-07-06T13:13:35.000Z","size":364,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-27T22:07:00.596Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AoxeTech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-06-05T05:47:44.000Z","updated_at":"2025-07-06T13:13:38.000Z","dependencies_parsed_at":"2024-02-24T09:25:18.891Z","dependency_job_id":"c97b116f-9b84-41f9-a3ea-f3bb9f240689","html_url":"https://github.com/AoxeTech/Aoxe.Redis","commit_stats":{"total_commits":176,"total_committers":3,"mean_commits":"58.666666666666664","dds":"0.32386363636363635","last_synced_commit":"e13f50d229ffc81fae9444900194b980cd8060b0"},"previous_names":["mutuduxf/zaabee.redis","aoxetech/aoxe.redis","picohex/zaabee.redis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AoxeTech/Aoxe.Redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AoxeTech%2FAoxe.Redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AoxeTech%2FAoxe.Redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AoxeTech%2FAoxe.Redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AoxeTech%2FAoxe.Redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AoxeTech","download_url":"https://codeload.github.com/AoxeTech/Aoxe.Redis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AoxeTech%2FAoxe.Redis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268126594,"owners_count":24200290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-31T22:23:27.820Z","updated_at":"2025-07-31T22:23:33.123Z","avatar_url":"https://github.com/AoxeTech.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aoxe.Redis\n\n[Redis](https://github.com/antirez/redis) is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, HyperLogLogs, Bitmaps. [http://redis.io](http://redis.io)\n\n## Introduction\n\nThis redis client wrappers and serializers.\n\n## QuickStart\n\n### NuGet\n\n```CLI\nInstall-Package Aoxe.StackExchangeRedis\nInstall-Package Aoxe.NewtonsoftJson\n```\n\n### Build Project\n\nCreate an asp.net core project and import references in startup.cs. Get [Aoxe.StackExchangeRedis](https://github.com/AoxeTech/Aoxe.Redis/tree/master/src/Aoxe.StackExchangeRedis/Aoxe.StackExchangeRedis) and [Aoxe.NewtonsoftJson](https://github.com/AoxeTech/Aoxe.Serialization/tree/master/src/Aoxe.NewtonsoftJson) from Nuget,otherwise we have other serializers:\n\n[Aoxe.Binary](https://github.com/AoxeTech/Aoxe.Serialization/tree/master/src/Aoxe.Binary)\n\n[Aoxe.Jil](https://github.com/AoxeTech/Aoxe.Serialization/tree/master/src/Aoxe.Jil)\n\n[Aoxe.MsgPack](https://github.com/AoxeTech/Aoxe.Serialization/tree/master/src/Aoxe.MsgPack)\n\n[Aoxe.Protobuf](https://github.com/AoxeTech/Aoxe.Serialization/tree/master/src/Aoxe.Protobuf)\n\n[Aoxe.SystemTextJson](https://github.com/AoxeTech/Aoxe.Serialization/tree/master/src/Aoxe.SystemTextJson)\n\n[Aoxe.Utf8Json](https://github.com/AoxeTech/Aoxe.Serialization/tree/master/src/Aoxe.Utf8Json)\n\n[Aoxe.Xml](https://github.com/AoxeTech/Aoxe.Serialization/tree/master/src/Aoxe.Xml)\n\n[Aoxe.ZeroFormatter](https://github.com/AoxeTech/Aoxe.Serialization/tree/master/src/Aoxe.ZeroFormatter)\n\n```CSharp\nusing Aoxe.StackExchangeRedis;\nusing Aoxe.StackExchangeRedis.Abstractions;\nusing Aoxe.NewtonsoftJson;\n```\n\nRegister AoxeRedisClient in Configuration like\n\n```CSharp\npublic void ConfigureServices(IServiceCollection services)\n{\n    services.AddMvc();\n    services.AddSingleton\u003cIAoxeRedisClient\u003e(p =\u003e\n        new AoxeRedisClient(new AoxeStackExchangeRedisOptions\n                {\n                    ConnectionString = \"192.168.78.140:6379,abortConnect=false,syncTimeout=3000\"),\n                    DefaultExpiry = TimeSpan.FromMinutes(10),\n                    Serializer = new AoxeSerializer()\n                });\n}\n```\n\nAdd a TestClass for the demo\n\n```CSharp\npublic class TestModel\n{\n    public Guid Id { get; set; }\n\n    public string Name { get; set; }\n\n    public int Age { get; set; }\n\n    public DateTime CreateTime { get; set; }\n}\n```\n\nCreate a controller like this\n\n```CSharp\n[Route(\"api/[controller]/[action]\")]\n[ApiController]\npublic class RedisDemoController : ControllerBase\n{\n    private readonly IAoxeRedisClient _redisHandler;\n\n    public RedisDemoController(IAoxeRedisClient handler)\n    {\n        _redisHandler = handler;\n    }\n\n    [HttpGet]\n    [HttpPost]\n    public Guid Add()\n    {\n        var testModel = new TestModel\n        {\n            Id = Guid.NewGuid(),\n            Name = \"apple\",\n            Age = 18,\n            CreateTime = DateTime.Now\n        };\n        _redisHandler.Add(testModel.Id.ToString(), testModel);\n        return testModel.Id;\n    }\n\n    [HttpGet]\n    [HttpPost]\n    public List\u003cstring\u003e AddRange(int quantity)\n    {\n        var testModles = new List\u003cTuple\u003cstring, TestModel\u003e\u003e();\n        for (var i = 0; i \u003c quantity; i++)\n        {\n            var id = Guid.NewGuid();\n            testModles.Add(new Tuple\u003cstring, TestModel\u003e(id.ToString(),\n                new TestModel\n                {\n                    Id = id,\n                    Name = \"apple\",\n                    Age = 18,\n                    CreateTime = DateTime.Now\n                }));\n        }\n\n        _redisHandler.AddRange(testModles);\n\n        return testModles.Select(p =\u003e p.Item1).ToList();\n    }\n\n    [HttpGet]\n    [HttpPost]\n    public void Delete(string key)\n    {\n        _redisHandler.Delete(key);\n    }\n\n    [HttpGet]\n    [HttpPost]\n    public void DeleteAll([FromBody]IList\u003cstring\u003e keys)\n    {\n        _redisHandler.DeleteAll(keys);\n    }\n\n    [HttpGet]\n    [HttpPost]\n    public TestModel Get(string key)\n    {\n        return _redisHandler.Get\u003cTestModel\u003e(key);\n    }\n\n    [HttpGet]\n    [HttpPost]\n    public Dictionary\u003cstring, TestModel\u003e GetAll([FromBody]IList\u003cstring\u003e keys)\n    {\n        return _redisHandler.Get\u003cTestModel\u003e(keys);\n    }\n}\n```\n\nNow you can run a [Postman](https://www.getpostman.com/) and send some requests to try it.And the AoxeRedisClient has async methods like AddAsync/AddRangeAsync/DeleteAsync/DeleteAllAsync,you can try it yourself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faoxetech%2Faoxe.redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faoxetech%2Faoxe.redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faoxetech%2Faoxe.redis/lists"}