Skip to content

Commit

Permalink
Merge c3b0c6f into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 31, 2021
2 parents 938e35d + c3b0c6f commit 3c7e01f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.3.0
# 0.3.0+1

- Fmap.containsKey works faster
- Fmap.entries works faster
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ fmap['bool'] = true;
If the storage has become too large, you can delete the oldest data.

``` dart
// leave only the freshest 16 Mb
fmap.purgeSync(16*1024*1024);
// leave only the newest 16 megabytes
fmap.purge(16*1024*1024);
```

Which elements are removed depends on the `policy` argument passed to the
Expand All @@ -110,10 +110,10 @@ final fmap = Fmap(dir, policy: Policy.fifo);

Two policies are supported: FIFO and LRU. By default, this is FIFO.

If you want the `purgeSync` method to purge storage with LRU policy, you must
If you want the `purge` method to purge storage with LRU policy, you must
not only create `Fmap(policy: Policy.lru)` before purging but always
create the object this way. It will force `Fmap` to update the last-used
timestamps every time an item is read.
timestamps every time an entry is read.

When you do not specify this argument, the timestamps are only updated on
writes, but not on reads.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fmap
description: File-based key-value collection. Good for caching and blob storage.
version: 0.3.0
version: 0.3.0+1
repository: https://github.com/rtmigo/fmap

environment:
Expand Down

0 comments on commit 3c7e01f

Please sign in to comment.