SwiftMemCache icon indicating copy to clipboard operation
SwiftMemCache copied to clipboard

CocoaPods

Open carmelogallo opened this issue 10 years ago • 8 comments

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

carmelogallo avatar Jul 28 '15 17:07 carmelogallo

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

ctews avatar Jul 28 '15 19:07 ctews

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

carmelogallo avatar Jul 28 '15 19:07 carmelogallo

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 ;)

ctews avatar Jul 28 '15 20:07 ctews

Awesome!

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

Ping me when they will be ready, cheers!

carmelogallo avatar Jul 28 '15 20:07 carmelogallo

@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 ;)

ctews avatar Jul 29 '15 07:07 ctews

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

carmelogallo avatar Jul 29 '15 08:07 carmelogallo

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.

ctews avatar Jul 29 '15 08:07 ctews

Got it! :P

carmelogallo avatar Jul 29 '15 09:07 carmelogallo