{"id":26155462,"url":"https://github.com/ntdls/kitkey","last_synced_at":"2026-05-16T06:34:30.378Z","repository":{"id":271501066,"uuid":"913664768","full_name":"NTDLS/KitKey","owner":"NTDLS","description":"A low latency, high-performance, and reliable persistent or ephemeral key-value store over TCP/IP.","archived":false,"fork":false,"pushed_at":"2025-11-14T03:22:24.000Z","size":1486,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-14T05:30:34.378Z","etag":null,"topics":["cache","database","ipc","key-value","nosql"],"latest_commit_sha":null,"homepage":"https://networkdls.com/Software/View/KitKey","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/NTDLS.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":"2025-01-08T05:53:44.000Z","updated_at":"2025-09-11T18:32:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"117152f3-ce1a-4aa3-bb37-7af5da7403c8","html_url":"https://github.com/NTDLS/KitKey","commit_stats":null,"previous_names":["ntdls/kitkey"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/NTDLS/KitKey","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FKitKey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FKitKey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FKitKey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FKitKey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NTDLS","download_url":"https://codeload.github.com/NTDLS/KitKey/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FKitKey/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33092688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cache","database","ipc","key-value","nosql"],"created_at":"2025-03-11T08:56:18.438Z","updated_at":"2026-05-16T06:34:30.373Z","avatar_url":"https://github.com/NTDLS.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KitKey\nEver wondered what it would be like if Redis hadn't become a fat beast? 👊💩\n\nWell, we wanted to keep it simple and really target the .net environment... so we wrote KitKey. A low latency, high-performance, and reliable persistent or ephemeral key-value store over TCP/IP utilizing RocksDB for persistence, wrapped in a partitioned memory cache for level-1 caching, an optional web-service API, management interface, and accompanying nuget packages for server and client.\n\nYou can run the KitKey server either from the nuget package or by downloading the dedicated [service installer](https://github.com/NTDLS/KitKey/releases)\n\nKitKey key-value stores are \"strongly typed\", it supports stores for int32, int64, float, double, date-time and guid.\nIn addition to single value key-value stores, KitKey also supports lists of values for a single key, where you can push-first, push-last, get the entire list, get the first or last item and of course remove items from the list.\n\n## Testing Status\n[![Regression Tests](https://github.com/NTDLS/KitKey/actions/workflows/Regression%20Tests.yaml/badge.svg)](https://github.com/NTDLS/KitKey/actions/workflows/Regression%20Tests.yaml)\n\n## Packages 📦\n- **Server:** https://www.nuget.org/packages/NTDLS.KitKey.Server\n- **Client:** https://www.nuget.org/packages/NTDLS.KitKey.Client\n\n## See also:\n - https://github.com/NTDLS/CatMQ\n\n## Server\nBesides running the dedicated service using the installer, you can run the server from code:\n\n```csharp\nvar serverConfig = new KkServerConfiguration()\n{\n    PersistencePath = Path.GetDirectoryName(Environment.ProcessPath)\n};\n\nvar server = new KkServer(serverConfig);\n            \nserver.Start(KkDefaults.DEFAULT_KEYSTORE_PORT);\n\nConsole.WriteLine(\"Press [enter] to stop.\");\nConsole.ReadLine();\n\nserver.Stop();\n```\n\n## Client (single value)\nThe client is quite configurable, but the basic connection, store creation and get, set, delete it straight forward.\n\n```csharp\nvar client = new KkClient();\n\nclient.Connect(\"localhost\", KkDefaults.DEFAULT_KEYSTORE_PORT);\n\nvar storeConfig = new KkStoreConfiguration(\"MyFirstStore\")\n{\n    PersistenceScheme = KkPersistenceScheme.Ephemeral,\n    ValueType = KkValueType.String\n};\n\nclient.CreateStore(storeConfig);\n\nfor (int i = 0; i \u003c 100000; i++)\n{\n    var randomKey = Guid.NewGuid().ToString().Substring(0, 4);\n    var randomValue = Guid.NewGuid().ToString();\n\n    //Add a string value\n    client.Set(\"MyFirstStore\", randomKey, randomValue);\n\n    //Get the value we just set.\n    var retrievedValue = client.Get\u003cstring\u003e(\"MyFirstStore\", randomKey);\n}\n\nConsole.WriteLine(\"Press [enter] to stop.\");\nConsole.ReadLine();\n\nclient.Disconnect();\n```\n\nGetting, setting, and deleting a key-value to/from the key store server.\n```csharp\n//Set a value:\nclient.Set(\"MyFirstStore\", \"Key_Name\", \"Some text value\");\n\n//Get a value:\nvar value = client.Get\u003cstring\u003e(\"MyFirstStore\", \"Key_Name\");\n\n//Delete a value:\nclient.Remove(\"MyFirstStore\", \"Key_Name\");\n```\n\n## Client (list value)\nKitKey also supports creating lists of values for a given key.\n\n```csharp\nvar client = new KkClient();\n\nclient.Connect(\"localhost\", KkDefaults.DEFAULT_KEYSTORE_PORT);\n\nvar storeConfig = new KkStoreConfiguration(\"MyFirstStore\")\n{\n    PersistenceScheme = KkPersistenceScheme.Ephemeral,\n    ValueType = KkValueType.ListOfStrings\n};\n\nclient.CreateStore(storeConfig);\n\nfor (int i = 0; i \u003c 100000; i++)\n{\n    var randomValue = Guid.NewGuid().ToString();\n\n    //Push a list item to the key-store. You can also PushFirst().\n    client.PushLast(\"MyFirstStore\", \"KeyOfListValue\", randomValue);\n\n    //Get the value we just set.\n    var retrievedList = client.GetList\u003cstring\u003e(\"MyFirstStore\", \"KeyOfListValue\");\n    var firstListValue = client.GetLast\u003cstring\u003e(\"MyFirstStore\", \"KeyOfListValue\");\n    var lastListValue = client.GetFirst\u003cstring\u003e(\"MyFirstStore\", \"KeyOfListValue\");\n\n    //Remove item from the list.\n    client.RemoveListItemByKey(\"MyFirstStore\", \"KeyOfListValue\", lastListValue.Id);\n}\n\nConsole.WriteLine(\"Press [enter] to stop.\");\nConsole.ReadLine();\n\nclient.Disconnect();\n```\n\n## Screenshots\n![image](https://github.com/user-attachments/assets/d1f8559d-ade8-409d-8bbb-c38770f3bfdf)\n\n![image](https://github.com/user-attachments/assets/af436c63-fe89-4629-8d0c-94a6b8c72374)\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntdls%2Fkitkey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntdls%2Fkitkey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntdls%2Fkitkey/lists"}