csharp-old
csharp-old copied to clipboard
Cache support
There isn't a mention of a cache anywhere here. Is it even supported? If not, we need to add support for that.
Since the codebase seems to basically be completely generated, this might need a significant rework of the entire SDK as it currently stands.
I can do this, but are you sure this is the responsibility of the SDK?
- This is an extra dependency.
- Caching can be easily added on top of an existing client using similar libraries - https://github.com/cordialgerm/FluentCache
- It is necessary to give the user control over the cache expiration timeout, possibly different for different methods.
All the other SDKs currently work this way, and it is fully overrideable so that a completely separate implementation can be provided, even a no-op one, or a persistence one for disk, etc.
See for example https://github.com/ipinfo/python#caching.