Skip to content

Instantly share code, notes, and snippets.

@emenegro
Last active March 21, 2017 21:04
Show Gist options
  • Save emenegro/4eeb679d9096d5d969ea2423f50830f1 to your computer and use it in GitHub Desktop.
Save emenegro/4eeb679d9096d5d969ea2423f50830f1 to your computer and use it in GitHub Desktop.
let cache = OfflineActionBuilder.builder
.toCache("https://www.medium.com")
.data(Data())
.forId("id")
.keepingAliveUntil(Date())
.build()
let get = OfflineActionBuilder.builder
.toGet("https://www.medium.com")
.withEncryptionKey("encryptionKey")
.ifBefore(Date())
.build()
let delete = OfflineActionBuilder.builder
.toDelete("https://www.medium.com")
.build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment