ctews / SwiftMemCache

Swift Memory Cache with namespace & TTL support
MIT License
47 stars 3 forks source link

CocoaPods #3

Open carmelogallo opened 9 years ago

carmelogallo commented 9 years ago

Hey guys, thanks for this library. Seems pretty amazing!

Anyway, I think you should add it in CocoaPods. That will simplify the life.

Thanks in advance, cheers!

Carmelo

ctews commented 9 years ago

Hey @cikpis,

thanks for the appreciation! I think it's a great idea into Cocoapods. Didn't do it yet because it's only one file and there weren't really requests for it, but I'll try to add it to Cocoapods in the near future!

Cheers, Chris

carmelogallo commented 9 years ago

Also would be great to save the caches in local disk ;)

ctews commented 9 years ago

Totally right, wanted to implement that anyway but just got stuck and brain stopped working because of some type precision problem with the ttl ;) But I guess I know how to handle that now. Will try to add that as fast as possible because I need it too ;)

carmelogallo commented 9 years ago

Awesome!

Nice chat with you my friend. Hope to see those implementations soon :P

Ping me when they will be ready, cheers!

ctews commented 9 years ago

@cikpis Persistence of the cache should be implemented with https://github.com/ctews/SwiftMemCache/pull/5 - Tests are green, behaves as expected.

If you like the lib please give a Star ;)

carmelogallo commented 9 years ago

Have you tested it with a class object and see if all properties are saved correctly?

ctews commented 9 years ago

Hehe of course not, was a quick hack. 😱 Works with value types, but will check class objects later :) But from the code I wrote it couldn't save class objects right at the moment. Needs more logic for encoding etc. Will do this when I've a lil bit more spare time to do it properly.

carmelogallo commented 9 years ago

Got it! :P