ezet / evelib

Eve Online Library.NET is an open source C# wrapper for CCPs Eve Online API and other popular Eve Online APIs.
Apache License 2.0
71 stars 36 forks source link

Use a factory method to create instances of the cache #17

Closed kid closed 10 years ago

kid commented 10 years ago

Currently, it's not possible to use a custom implementation of IEveLibCache without chaning the code in BaseEntity. This will allow users to provide a custom factory method to use their implementation if needed.

ezet commented 9 years ago

Are you implementing a custom cache for the library? If so feel free to request a pull, and also let me know if you need to make changes to the interface to make a proper implementation. The interface was done in a hurry with that I thought would be needed, but I very well might have overlooked something.

kid commented 9 years ago

Yes, I'm working on a Redis implementation for Windows Azure, I'll make a pull request when it's done, but it's still untested right now.