Skip to content

Add cache #11

@jperelli

Description

@jperelli

Think on how to add a directory/redis/memcache cache so that this can be used as a <img src="..."> tag more efficiently. Maybe add a cache param like

  • cache=directory:path
  • cache=redis:url
  • cache=memcache:url
    and maybe use another param like cache_force_refresh=true to refresh cache, or a timeout like cache_timeout to expire old elements saved in cache

this module looks good enough https://www.npmjs.com/package/cache-manager
and this one to build the key from the options object https://www.npmjs.com/package/json-stable-stringify

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurenew feature to be added

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions