Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created May 28, 2019 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/4375379f8b844adf1df7eab209e6f88b to your computer and use it in GitHub Desktop.
Save fitomad/4375379f8b844adf1df7eab209e6f88b to your computer and use it in GitHub Desktop.
/// Recuperamos un objeto de la cache
public subscript(key: String) -> Data?
{
let theKey = key as NSString
return self.cache.object(forKey: theKey) as Data?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment