forked from aolserver/aolserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed behavior such that 'return' in 'ns_cache eval' works like des…
…cribed in the documentation and in the old nscache module. - Added documentation of optional 'pattern' argument for 'ns_cache names'.
- Loading branch information
gneumann
committed
Jan 31, 2009
1 parent
671b7da
commit 9fb1d64
Showing
2 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
'\" version of this file under either the License or the GPL. | ||
'\" | ||
'\" | ||
'\" $Header: /Users/dossy/Desktop/cvs/aolserver/doc/ns_cache.n,v 1.5 2006/04/13 19:05:43 jgdavidson Exp $ | ||
'\" $Header: /Users/dossy/Desktop/cvs/aolserver/doc/ns_cache.n,v 1.6 2009/01/31 21:35:08 gneumann Exp $ | ||
'\" | ||
'\" | ||
'\" transliterated from index.html by [email protected] 2002-11-10 | ||
|
@@ -49,7 +49,7 @@ ns_cache \- Cache arbitrary data | |
\fBns_cache get \fIcachename key \fR?\fIvarname\fR? | ||
\fBns_cache incr \fIcachename key ?value?\fR | ||
\fBns_cache lappend \fIcachename key string ?string ...?\fR | ||
\fBns_cache names \fIcachename\fR | ||
\fBns_cache names \fIcachename ?pattern?\fR | ||
\fBns_cache set \fIcachename key string\fR | ||
.fi | ||
.BE | ||
|
@@ -118,8 +118,10 @@ if the key is missing an error is raised. If \fIvarname\fR is | |
provided and the key exists the command sets \fIvarname\fR to the | ||
value and returns 1, otherwise it returns 0. | ||
.TP | ||
\fBns_cache names \fIcachename\fR | ||
\fBns_cache names \fIcachename ?pattern?\fR | ||
This command returns a list of all keys currently in the specified cache. | ||
If \fIpattern\fR is specified, only matching entries are returned | ||
(match pattern syntax like in \fBstring match\fR). | ||
|
||
If the cache is thread-private, then the list only includes keys that | ||
are in the thread's private cache. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters