{"id":15196955,"url":"https://github.com/jaimerc/redisdb-module","last_synced_at":"2026-03-03T22:32:45.026Z","repository":{"id":135546046,"uuid":"247693674","full_name":"JaimeRC/redisdb-module","owner":"JaimeRC","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-13T20:04:26.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T05:25:12.647Z","etag":null,"topics":["chai","docker","docker-compose","mocha","redis-server","redisdb","testing"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JaimeRC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-03-16T12:14:09.000Z","updated_at":"2020-04-13T20:04:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"c17c5622-ccd4-426d-ad57-12a7b653b655","html_url":"https://github.com/JaimeRC/redisdb-module","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"4a4ef46f82e1a0fa0648bb69b7533854d69d4b3a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaimeRC%2Fredisdb-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaimeRC%2Fredisdb-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaimeRC%2Fredisdb-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaimeRC%2Fredisdb-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JaimeRC","download_url":"https://codeload.github.com/JaimeRC/redisdb-module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241549118,"owners_count":19980476,"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":["chai","docker","docker-compose","mocha","redis-server","redisdb","testing"],"created_at":"2024-09-28T00:21:52.375Z","updated_at":"2026-03-03T22:32:44.991Z","avatar_url":"https://github.com/JaimeRC.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redis DB\n\n# Estructura del Proyecto\n\n    docker-compose.yml                                  # Crea la red, imagenes y contenedores (RedisDB y Test_commands).\n        ├─── redis                                      # RedisDB.\n        |      └─── redis.conf                          # Archivo de configuracion de RedisDB.\n        └─── test_commands                              # Servicio para realizar Testing sobre RedisDB.\n               ├─── test                                # Carpeta de Test.\n               |      ├─── index.js                     # Archivo de Iniciacion de los Test.\n               |      ├─── connection.test.js           # Testing de la conexion.\n               |      ├─── commands.test.js             # Testing sobre comandos basicos (get, set, call, getBuffer, exists, keys, etc.).\n               |      ├─── commands.hash.test.js        # Testing sobre Hash (hget, hset, hmget, hmset, etc.).\n               |      ├─── command.incr.decr.test.js    # Testing sobre comandos de incrementos y decrementos.\n               |      ├─── command.sets.test.js         # Testing sobre Conjuntos.\n               |      ├─── command.sorted.sets.js       # Testing sobre Conjuntos ordenados.\n               |      ├─── request.limit.test.js        # Testing con un ejercicio para limitar peticiones.\n               |      └─── command.lists.js             # Testing sobre Listas\n               └─── Dockerfile.js                    # Acciones sobre el contenedor\n\n## Prerequisitos\n\n- [Docker](https://docs.docker.com/install/) \n- [Docker Compose](https://docs.docker.com/compose/install/)\n\n## Empezando\n\n1. Clona el repositorio.\n2. Ejecuta el comando `docker-compose up`.\n\n        Creating network \"redis_network\" with driver \"bridge\"\n        Pulling redis (redis:latest)...\n        latest: Pulling from library/redis\n        5bed26d33875: Downloading [=======\u003e                                           ]  4.135MB/26.69MB\n        ...\n        1d3609ce2ac9: Waiting\n        ...\n        Starting redis ... done\n        Starting test_commands ... done\n        Attaching to redis, test_commands\n        ...\n\n3. Despues de que se creen las instancia en los contenedores, nos introduciremos dento del contenedor de `test_commands` para ejecutar los test:\n       \n       docker exec -it test_module sh \n       npm run test\n       \n       RedisDB Testing\n            Connection\n              ✓ should emit connect when connected\n              ✓ should emit close when disconnected\n              ✓ should reject when connected\n              ✓ should resolve when the status become ready\n              ✓ should reject when closed (reconnecting)\n              ✓ should reject when closed (end)\n            Various Commands\n              ✓ should support callback\n              ✓ should support promise\n              ✓ should keep the response order when mix using callback \u0026 promise\n              ✓ should support get \u0026 set buffer\n              ✓ should support get \u0026 set buffer via `call`\n              ✓ should handle empty buffer\n              ✓ should support utf8\n              ✓ should consider null as empty str\n              ✓ should support return int value\n              ✓ should reject when disconnected\n              ✓ should reject when enableOfflineQueue is disabled\n              ✓ should support key prefixing\n              ✓ should support key prefixing with multiple keys\n              ✓ should allow sending the loading valid commands in connect event\n              ✓ should reject loading invalid commands in connect event\n            Hash commands\n              ✓ should get the values ​​of each field\n              ✓ should be considered null if the field or key does not exist\n              ✓ should support key prefixing for sort\n              ✓ should get the values ​​of each field (multi-get/multi-set)\n              ✓ should be considered null if the field or key does not exist (multi-get/multi-set)\n              ✓ should get all the values (multi-get/multi-set)\n              ✓ should get the number of fields (multi-get/multi-set)\n            Increment and Decrement Command (atomic)\n              ✓ should get the increased value\n              ✓ should get the decremented value\n              ✓ should get the increased value by 5\n              ✓ should get the decremented value by 5\n              ✓ should get the increased value in hash\n              ✓ should get the decremented value in hash\n            Sets command\n              ✓ should get a value one because the user does not exist\n              ✓ should get a value zero because the user exists\n              ✓ should get a value zero because the user exists\n              ✓ should get the number of members\n              ✓ should get all the members\n              ✓ should get value one if user exists\n              ✓ should get value zero if user does not exists\n              ✓ should get value one if user has been deleted\n              ✓ should get zero if the user has not been deleted\n              ✓ should get the difference between sets\n              ✓ should get intersection between sets\n              ✓ should show all users in sets\n            Request Limit Exercise\n              ✓ should get permission because it does not exceed 10 requests\n              ✓ should get permission because it does exceed 10 requests\n            List commands\n              ✓ should get a list with four elements adding to the beginning of the list\n              ✓ should get a list with four elements adding to the end of the list\n              ✓ should get different length of items from a list\n              ✓ should get the size of a list\n              ✓ should get the list without the elements repeated\n              ✓ should return the first item in the list\n              ✓ should check if the list exists or not\n              ✓ should get a limited size list\n            Sorted Sets commands\n              ✓ should get an ordered set with its value\n              ✓ should get an ordered set\n              ✓ should override the value\n              ✓ should get the size of the set\n              ✓ should get the items within limits\n              ✓ should get the increment value of an element and sort descending\n              ✓ should get the value of each item\n              ✓ should remove the first element\n        \n        \n          65 passing (1s)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaimerc%2Fredisdb-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaimerc%2Fredisdb-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaimerc%2Fredisdb-module/lists"}