{"repo":"tictactrip/axios-redis","free":true,"listed":false,"github":"https://github.com/tictactrip/axios-redis","clone":"git clone https://github.com/tictactrip/axios-redis.git","description":"📚 Axios Redis cache adapter","language":"TypeScript","stars":61,"topics":["axios","redis","cache","performance","interceptor","plugin","middleware","adapter"],"license":"GPL-3.0","category":"databases-storage","readme_excerpt":"axios-redis [![Coverage][coverage-badge]][coverage] [![Build Status][travis-badge]][travis-ci] [![License][license-badge]][LICENSE] [![PRs Welcome][prs-badge]][prs] Description This repository provides a smart and powerful Axios Redis cache adapter. Cached data is compressed with zlib and Brotli. Install Example HTTP methods cached As default, all GET and POST responses are cached. If you want to customize them, you can also do: Key structure By default, redis keys follow this pattern Example: If you want to customize the keys, you just need to customize your AxiosRedis instance. Disable cache for one request Customize cache duration for one request Tests How can I mock Redis connection with Jest in my unit tests? Scripts Run using yarn run command. clean - Remove temporarily folders. build - Compile source files. build:watch - Interactive watch mode, compile sources on change. lint - Lint source files. lint:fix - Fix lint source files. test - Runs all tests with coverage. License GPL-3.0 © Tictactrip [coverage-badge]: https://codecov.io/gh/tictactrip/axios-redis/branch/master/graph/badge.svg [coverage]: https://codecov.io/gh/tictactrip/axios-redis [travis-badge]: https://travis-ci.org/tictactrip/axios-redis.svg?branch=master [travis-ci]: https://travis-ci.org/tictactrip/axios-redis [license-badge]: https://img.shields.io/badge/license-GPL3-blue.svg?style=flat-square [license]: https://github.com/tictactrip/axios-redis/blob/master/LICENSE [prs-badge]: https://img.shields.io/b","default_branch":null,"files":null,"tree":[],"storefront":"/r/tictactrip","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tictactrip/axios-redis/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}