{"id":21899409,"url":"https://github.com/kofj/redlot","last_synced_at":"2025-10-07T18:13:06.949Z","repository":{"id":57563641,"uuid":"58638378","full_name":"kofj/redlot","owner":"kofj","description":"Redlot is a KV database.","archived":false,"fork":false,"pushed_at":"2016-12-19T13:26:05.000Z","size":76,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T06:15:48.510Z","etag":null,"topics":["golang","hashmap","kv-database"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/kofj.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}},"created_at":"2016-05-12T12:11:22.000Z","updated_at":"2017-10-16T02:49:11.000Z","dependencies_parsed_at":"2022-08-31T05:12:28.307Z","dependency_job_id":null,"html_url":"https://github.com/kofj/redlot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kofj%2Fredlot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kofj%2Fredlot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kofj%2Fredlot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kofj%2Fredlot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kofj","download_url":"https://codeload.github.com/kofj/redlot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244911965,"owners_count":20530731,"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","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":["golang","hashmap","kv-database"],"created_at":"2024-11-28T14:43:02.698Z","updated_at":"2025-10-07T18:13:06.856Z","avatar_url":"https://github.com/kofj.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redlot\nRedlot is a KV database.\n\n\n\n## Implemented\n\n### INFO\n\n​\tThis command will return the server informations.\n\n### KV\n\n- `SET key value` Set value by the key.\n- `GET key` Get value by the key.\n- `INCR key number`\n- `DEL key` Delete value by the key.\n- `EXISTS key` Check key is exists.\n- `SETX tempKey value TTL` Set value by the key and expire it after timeout.\n- SETEX (Alias of SETX)\n- `TTL key` Return the lifetime of the key.\n- `EXPIRE key` Expire the key after timeout.\n- `KEYS start end limit` List keys in the range.\n- `RKEYS start end limit` Reverse list keys in the range.\n- `SCAN start end limit` List KV pair that keys in the range.\n- `RSCAN start end limit` Reverse list KV pair that keys in the range.\n- `MULTI_GET key1 key2 ...` Batch read data from db.\n- `MULTI_SET key1 value1 key2 value2 ...` Batch write data to db.\n- `MULTI_DEL key1 key2 ...` Batch delete value by keys.\n\n### Hash\n\n- `HSET key field value` Hset will set a hashmap value by the field.\n- `HGET key field value` Hset will return a hashmap value by the field.\n- `HDEL key` Hdel will delete a hashmap value by the field.\n- `HINCR key field` Hincr will incr a hashmap value by the field.\n- `HINCRBY key field number` Hincrby will incr number a hashmap value by the field.\n- `HEXISTS key field` Hexists will check the hashmap field is exists.\n- `HSIZE key` Hsize will return the hashmap size.\n- `HKEYS key start end limit` Hkeys will list the hashmap fields in the range.\n- `HRKEYS key start end limit` Hrkeys will reverse list the hashmap fields in the range.\n- `HGETALL key` Hgetall will list all fields/value in the hashmap.\n- `HLIST key start end limit` Hlist will list all hashmap in the range.\n- `HRLIST key start end limit` Hrlist will reverse list all hashmap in the range.\n- `HSCAN key start end limit` Hscan will list fields/value of the hashmap in the range.\n- `HRSCAN key start end limit` Hrscan will reverse list fields/value of the hashmap in the range.\n- `HCLEAR key` Hclear will remove all value in the hashmap.\n\n\n## TODO\n\n### Geo data\n\n\n\n## Example\n\n```bash\ngo run example/server/main.go\n```\n\n### Benchmark\n\n```bash\nredis-benchmark -p 9999 -t set,get -r 100000 -n 100000 -c 150\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkofj%2Fredlot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkofj%2Fredlot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkofj%2Fredlot/lists"}