Merge pull request #2 from devmaximilian/documentation Documented undocumented symbols and added example usage
Merge pull request #2 from devmaximilian/documentation
Documented undocumented symbols and added example usage
This library aims to be a lightweight wrapper for caching Codable types.
Codable
Add Cached as a dependency by including it under dependencies in the package manifest file, Package.swift.
dependencies
Package.swift
dependencies: [ .package(url: "https://github.com/devmaximilian/cached.git", from: "x.x.x") ]
struct Article: Codable { let title: String let description: String } class Service { init() {} @Cached(key: "articles", defaultValue: [], ttl: .minutes(30)) var articles: [Article] }
Cached is released under the MIT license. See LICENSE for details.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Cached
This library aims to be a lightweight wrapper for caching
Codable
types.Installation
Swift Package Manager
Add Cached as a dependency by including it under
dependencies
in the package manifest file,Package.swift
.Usage
License
Cached is released under the MIT license. See LICENSE for details.