Sign inSign up

ivansanmartins/flash-cache-server

By ivansanmartins

•Updated over 2 years ago

flash-cache-server Express.js

Image
0

157

ivansanmartins/flash-cache-server repository overview

⁠About

Flash-cache-server is a simple API that allows testing Redis cache. This is backend code that can be used in any frontend project for more visual testing. The API consumes other API's that allow the http GET method for getting data and manipulating that. Sometimes those responses are very slow on our local servers, and here is the entry for Redis to save this data from the API, and then for future requests, the response will be more fast with Redis.

⁠Docs

flash-cache documentation⁠

⁠How to use this Image

Start:

  • Remember to create a Redis container for then connect to flash-cache-container (Create a network a set correctly redis host and port in environment variables of flash-cache-container)
  • 
    $ docker container run \
    --name flash-cache-server \
    -dp 3000:3000 \
    --env REDIS_HOST=redis \
    --env REDIS_PORT=6379 \
    ivansanmartins/flash-cache-server:teddy
    
    

    ⁠Docker Compose - flash-cache-server & Redis

    Example:

    docker-compose.yaml

    
    version: '3'
    
    services:
      redis:
        container_name: redis
        image: redis:bookworm
        ports:
          - "6379:6379"
    
      server:
        container_name: flash-cache-server
        depends_on:
          - redis
        image: ivansanmartins/flash-cache-server:teddy
        ports:
          - "3000:3000"
        environment:
          REDIS_HOST: redis
          REDIS_PORT: 6379
        restart: always
    

    ⁠More

  • flash-cache-client with flash-cache-server and Redis⁠
  • Tag summary

    Content type

    Image

    Digest

    sha256:d3b132959…

    Size

    52.9 MB

    Last updated

    over 2 years ago

    docker pull ivansanmartins/flash-cache-server