modernistik / parse-stack

Parse Server Ruby Client SDK
https://www.modernistik.com/gems/parse-stack/
MIT License
61 stars 20 forks source link

Allow Moneta::Expires as cache object to allow for non-native expiring caches #39

Closed GrahamW closed 7 years ago

GrahamW commented 7 years ago

Small change to allow use of Moneta::Expires proxy when not using an adaptor with native expiry.

Could have changed the check for Moneta::Transformer to also check for Moneta::Expires too, but now checking for the methods used being present. Think this is OK?

apersaud commented 7 years ago

Thanks. I'll review.

apersaud commented 7 years ago

@GrahamW, is there a way you can write a test for this? (under the tests folder). Thanks

GrahamW commented 7 years ago

Yeah - I'll have a think about the best way to do that.