{"id":20833682,"url":"https://github.com/droideveloper/persist","last_synced_at":"2026-04-14T12:34:10.836Z","repository":{"id":96349203,"uuid":"186450397","full_name":"droideveloper/Persist","owner":"droideveloper","description":"IOS library for persisting content into disk with rx defaults","archived":false,"fork":false,"pushed_at":"2021-03-15T08:08:32.000Z","size":551,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T21:17:24.875Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/droideveloper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-13T15:46:40.000Z","updated_at":"2020-05-18T20:28:07.000Z","dependencies_parsed_at":"2023-03-21T21:17:37.993Z","dependency_job_id":null,"html_url":"https://github.com/droideveloper/Persist","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droideveloper%2FPersist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droideveloper%2FPersist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droideveloper%2FPersist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droideveloper%2FPersist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/droideveloper","download_url":"https://codeload.github.com/droideveloper/Persist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243188202,"owners_count":20250453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T00:16:23.247Z","updated_at":"2025-12-24T12:59:05.033Z","avatar_url":"https://github.com/droideveloper.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Persist\n\nPersist is a RxSwift helper for persisting stuff line (Codable) Encodable-Decodable, UIImage (.png or .jpg) along with Data into disk.\n\n  - Supports Coddable (Encodable or Decodable)\n  - UIImage as .jpg or .png\n  - Data as binary\n  - Can add Folder or File hierarchy easily\n\n# New Features (v1.0.0)\n\n  - RxSwift 4.5 for Swift 4.2 support\n  - Lazy initialization on call (not allocated on memory until needed)\n\nEasy to use interface on access only allocation with singleton pattern, you can even expend image caching into more robust way with this read and write operations.\n\n### Tech\n\nPersist uses open source project to work properly:\n\n* [RxSwift](https://github.com/ReactiveX/RxSwift) - Checkout RxSwift on github\n\n### Installation\n\nPersist requires [Swift4.2](https://swift.org/blog/swift-4-2-released/)\n\nInstall Persist via CocoaPods.\n\n```pod\npod 'Persist', :git =\u003e \"https://github.com/droideveloper/Persist\", :branch =\u003e \"release/1.0.0\"\n```\n\n### How to use\n\n```swift\nlet persist = Persist.default()\n// create file inside of documents folder (there are some more options in here, including more paths)\nlet file = File.create(.document, name: \"people.cache\")\n\n// if we read array\nlet disposable: Disposable = persist.readAsync(file) { people: [Person] in \n    // we can grab our array in here\n}\n// if we read single object\nlet disposable: Disposable = persist.readAsync(file) { person: Person in\n    // we can grab our person in here\n}\n\n// if we want to cancel operation of reading before compeleted, RxSwift will be help\ndisposable.dispose()\n\n// example object\nstruct Person: Codable {\n    var name: String?\n    var surname: String?\n}\n\n```\n\nLicense\n----\n\nMIT\n\nCopyright 2019, Fatih Şen (aka [droideveloper](https://github.com/droideveloper))\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroideveloper%2Fpersist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdroideveloper%2Fpersist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroideveloper%2Fpersist/lists"}