grape-rails-cache icon indicating copy to clipboard operation
grape-rails-cache copied to clipboard

HTTP and server side cache integration for Grape and Rails

Results 5 grape-rails-cache issues
Sort by recently updated
recently updated
newest added

Since the last release ([v0.1.2](https://rubygems.org/gems/grape-rails-cache/versions/0.1.2)), 2 things have been added/changed: - #5 - #7 (there's even a [comment here](https://github.com/monterail/grape-rails-cache/pull/7#issuecomment-151174672) to cut a release later) Can you cut another release? Thanks

When `raw: true` is set in Rails cache options, Rails expects a binary string as an input. No conversion is performed before sending the block result to the cache storage...

Any reason why you call `to_json` yourself? What happens if we want to return an `xml` format instead? Should probably return a hash instead

Any reason why you are not using `cache_key` instance method by default? ``` ruby post = Post.find(params[:id]) cache(key: post.cache_key, etag: post.updated_at, expires_in: 2.hours) do post # post.extend(PostRepresenter) etc, any code...

Add keys evaluation with Uber gem Add :if option Do not use cache in case of cache_store_expire_time is equal or less than 0