SamSaffron / lru_redux

An efficient optionally thread safe LRU Cache
MIT License
285 stars 20 forks source link

make raw cache data accessible. #14

Closed yudai09 closed 8 years ago

yudai09 commented 8 years ago

I want to access raw hash data so that serialize it and store into a file.

Seberius commented 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:

SamSaffron commented 8 years ago

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.

yudai09 commented 8 years ago

I'm sorry. I overlooked to_a(). It's enough for my usage.