-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do we call "public class Cache<T: NSCoding> " #83
Comments
AwesomeCache is a generic class, thus you need to add the type of the objects you want to store in the cache when instantiating the instance. let cache = Cache<NSData>(name "foo") |
Hey , Thanks, Alex i figured this out .i really appreciate you for your email. On Tue, Nov 15, 2016 at 4:45 PM, Alexander Schuch notifications@github.com
Thanks, Disclaimers This email and any files transmitted with it are confidential and intended |
i am trying like this
AwesomeCache.Cache(name: name, directory: cachePath)
but it's throwing me an error 'NSCoding' cannot be used as a type conforming to protocol 'NSCoding' because 'NSCoding' has static requirements
The text was updated successfully, but these errors were encountered: