{"id":19839405,"url":"https://github.com/redislabs/lua-redimension","last_synced_at":"2025-05-01T19:30:19.811Z","repository":{"id":141980543,"uuid":"45782839","full_name":"RedisLabs/lua-redimension","owner":"RedisLabs","description":"Redis multi-dimensional query library in Lua","archived":false,"fork":false,"pushed_at":"2015-12-15T08:05:47.000Z","size":10,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-06T17:03:19.521Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedisLabs.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":"2015-11-08T14:05:15.000Z","updated_at":"2022-09-27T16:19:51.000Z","dependencies_parsed_at":"2023-03-15T07:40:29.466Z","dependency_job_id":null,"html_url":"https://github.com/RedisLabs/lua-redimension","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/RedisLabs%2Flua-redimension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Flua-redimension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Flua-redimension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Flua-redimension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedisLabs","download_url":"https://codeload.github.com/RedisLabs/lua-redimension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251932513,"owners_count":21667157,"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":[],"created_at":"2024-11-12T12:22:16.888Z","updated_at":"2025-05-01T19:30:19.447Z","avatar_url":"https://github.com/RedisLabs.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"redimension.lua\n===\n\nA port of [Redimension](https://github.com/antirez/redimension) to Redis Lua with a semi-Redis API. Developed 100% without a debugger.\n\nDivergences\n===\n\n* Indices always use a Sorted Set (for ranges) and a Hash (for id lookups).\n\nKnown issues\n===\n\n* Can't index elements named _dim and _prec\n* Can't deal with elements that have colons (':')\n* Lua's integers are 32 bit, could lead to breakage somewhen (`2^exp`...)\n\nUsage\n===\n\nUse `EVAL`, `EVALSHA` or `redis-cli --eval` to run redimension.lua.\n\nThe script requires two key names and at least one argument, as follows:\n\n* KEYS[1] - the index sorted set key\n* KEYS[2] - the index hash key\n* ARGV[1] - the command\n\nCommand may be one of the following:\n\n* create - create an index with ARGV[2] as dimension and ARGV[3] as precision',\n* drop          - drops an index\n* index         - index an element ARGV[2] with ARGV[3]..ARGV[3+dimension] values\n* unindex       - unindex an element ARGV[2] with ARGV[3]..ARGV[3+dimension] values\n* unindex_by_id - unindex an element by id ARGV[2]\n* update        - update an element ARGV[2] with ARGV[3]..ARGV[3+dimension] values\n* query         - query using ranges ARGV[2], ARGV[3]..ARGV[2+dimension-1], ARGV[2+dimension]\n* fuzzy_test    - fuzzily tests the library on ARGV[2] dimension with ARGV[3] items using ARGV[4] queries\n\nTesting\n===\n\nFuzzy-ish testing is implemented inline - use the `fuzzy_test` command to invoke.\n\nPerformance\n===\n\nInformal benchmarking can be found at: https://gist.github.com/itamarhaber/3d8c9741c545202925aa\n\nLicense\n===\n\nThe code is released under the BSD 2 clause license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredislabs%2Flua-redimension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredislabs%2Flua-redimension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredislabs%2Flua-redimension/lists"}