Skip to content

Commit

Permalink
readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ivasilyeu committed Jul 21, 2024
1 parent af60b3f commit e84cdf9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
`NetworkCacheService` is a simple URL load caching service that allows to directly cache responses without having to rely on predetermined URLSession caching strategies.

##Features
## Features

- Expiration policies support
- Disk and memory storage
- Full thread safety

##Usage
## Usage

###Caching of network response models:
### Caching of network response models:

```swift
URLSession.shared.dataTask(with: url) { [cacheService] data, response, error in
Expand All @@ -26,7 +26,7 @@ URLSession.shared.dataTask(with: url) { [cacheService] data, response, error in
}.resume()
```

###Reading of previously cached models:
### Reading of previously cached models:

```swift
let modelOrNil = cacheService.readItem(of: ResponseNetworkModel.self, for: url)
Expand Down

0 comments on commit e84cdf9

Please sign in to comment.