Skip to content

Commit

Permalink
Fix some review
Browse files Browse the repository at this point in the history
  • Loading branch information
atroxaper committed Oct 13, 2017
1 parent f00c782 commit c39cee2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion META6.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"provides" : {
"Propius" : "lib/Propius.pm6"
},
"depends" : [ "TimeUnit" ],
"depends" : [ "TimeUnit", "OO::Monitors" ],
"tags": [ "cache" ],
"source-url" : "git://github.com/atroxaper/p6-Propius.git"
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Examples
$cache.get(5); # returns prodused the new value - 25;
$cache.get(5): # returns cached value - 25;
$cache.get-if-exists(6); # returns Any
$cache.put(:9key, loader => { $:key ** 3 }); # cache value for cpecified loader
$cache.put(:9key, loader => { $:key ** 3 }); # cache value for specified loader
$cache.get(9); # returns cached value - 729
# ... 60 seconds later in output (in case you use the cache)
removed 5:25 cause Expired
Expand Down Expand Up @@ -53,7 +53,7 @@ Can be specified for overriding standard behaviour (current system time),for exa
Notes
-----

The cache can use object keys. If you want that you have to control .WITCH method if keys.
The cache can use object keys. If you want that you have to control .WHICH method if keys.

Of course the cache is thread-save. It simply uses OO::Monitors for synchronisation.

Expand Down

0 comments on commit c39cee2

Please sign in to comment.