[RFC] Filters for caching
danpersa opened this issue · 0 comments
danpersa commented
There are many parameters caching filters can take. Based on these, they can look different. The goal of this issue is to identify the best way these caching filters can look like. Here are different options:
Putting they type of cache in the filter name and create many filters:
localFileCache(directory)
inMemoryCache(namespace)
s3Cache(url, username, password)
Giving the caching strategy as a parameter:
cache("localFileSystem", directory)
cache("memory", namespace)
cache("S3", url, username, password)
There are other questions as well, like should we give the caching parameters to the filter, or should they be configured once, when skrop starts? In case there is a global config, the filters could look like:
localFileCache()
inMemoryCache()
s3Cache()
Note: This approach brings less flexibility, as parameters can't be configured for each route
There might be other options as well. Let's discuss about this!