intridea / multi_json

A generic swappable back-end for JSON handling.
http://rdoc.info/projects/intridea/multi_json
MIT License
757 stars 129 forks source link

Reset options cache if cache doesn't exist yet #211

Closed djberg96 closed 7 months ago

djberg96 commented 7 months ago

At the moment you get an error the first time you try to specify an adapter. This PR modifies the OptionsCache module so that it checks to make sure the cache exists before trying to access it, and resets if it doesn't exist yet.

Addresses https://github.com/intridea/multi_json/issues/208