Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JCN-176-CREAR-PACKAGE-REDIS
JCN-176 Crear Package Redis
LINK AL TICKET
https://fizzmod.atlassian.net/browse/JCN-176
DESCRIPCIÓN DEL REQUERIMIENTO
1.1. Crear nuevo package utilizando el repositorio https://github.com/janis-commerce/redis
e instalandolo con
@janiscommerce/package-generator
1.2. El package debe ofrecer wrapper de los siguientes métodos:
1.2.1. get, wrapper de
hget
1.2.2. set, wrapper de
hset
1.2.3. del, wrapper de
hdel
1.3. Utilizar clase estática y cachear el cliente creado.
1.3.1. Crear el cliente en el primer método usado.
1.3.2. Utilizar las settings del valor
redis
utilizando el@janiscommerce/settings
1.3.3. Las settings tendrán el dato host para crear el cliente, ejemplo de settings:
1.4. El package debe estar 100% testeado para todas sus funcionalidades y escenarios
1.5. El package debe estar 100% documentado para todas sus funcionalidades y escenarios, mostrando ejemplos de uso.
Comentarios extra:
Eliminar el uso de
index.js
, exportar directamente el archivolib/redis.js
.DESCRIPCIÓN DE LA SOLUCIÓN
Se creó el paquete pedido, con tests y documentación.
Agregué que se puedan gettear todos los valores de una entidad de una vez.