Skip to content

Instantly share code, notes, and snippets.

@ricardopsantos
Last active January 14, 2023 16:04
Show Gist options
  • Save ricardopsantos/b46eabcedc2f2baee07652b4549c9e49 to your computer and use it in GitHub Desktop.
Save ricardopsantos/b46eabcedc2f2baee07652b4549c9e49 to your computer and use it in GitHub Desktop.
Article_13_G2.swift
class ExpiringCodableObjectWithKey: Codable {
var key: String! // Cache key (built using api request name and parameters)
var object: Data! // Value to be stored
var expireDate: Date! // The limit date in witch we can retried the object
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment