Closed yudai09 closed 8 years ago
Hello, Thank you for your interest in contributing to the library. I will leave it up to @SamSaffron to decide whether or not to accept this feature. I would wait to see what that decision is before working on my suggestions below.
The pull request will need to be revised as it is incomplete for a new method. You will need to add:
lib/lru_redux/util/safe_sync.rb
for examples. You may also need to add support to lib/lru_redux/util/safe_sync_jruby.rb
if tests fail (JRuby) without it.test/cache_test.rb
for examples.Agree with all @Seberius in addition, this change feels a bit too wide to be allowed, instead supporting a to_json and from json or stuff like that feels more like the correct level of abstraction.
I'm sorry. I overlooked to_a(). It's enough for my usage.
I want to access raw hash data so that serialize it and store into a file.