AwesomeCache icon indicating copy to clipboard operation
AwesomeCache copied to clipboard

AsesomeCache couldn't support Arrays?

Open arden opened this issue 9 years ago • 5 comments

AsesomeCache couldn't support Arrays? like let users = [User]?

arden avatar Jun 02 '16 02:06 arden

Is this project dead to not answer such a simple question?

simoami avatar Jul 08 '16 02:07 simoami

I am quite busy at the moment, hence my late reply. Did you make sure User conforms to the NSCoding protocol? AwesomeCache uses the NSCoding protocol in order to persist cached objects to disk.

aschuch avatar Jul 08 '16 12:07 aschuch

I think this lib must provide an array extension to NSCoding.

jonasman avatar Jul 11 '16 12:07 jonasman

@aschuch I have a similar requirement. The User class conforms to NSCoding, but Cache<[User]> shows a "Type '[User]' does not conform to to protocol NSCoding" error. So I have to agree with @jonasman.

zgosalvez avatar Aug 06 '17 02:08 zgosalvez

?

siyavash4812 avatar Sep 02 '17 06:09 siyavash4812