You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/ch_app.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1993,7 +1993,7 @@ The following topics explain how to use NetCache from an application:
1993
1993
1994
1994
#### The basic ideas
1995
1995
1996
-
A typical **NetCache** implementation involves a load-balanced server daemon (the "service") and one or more clients that access the service through a software interface. See [netcached.ini](https://www.ncbi.nlm.nih.gov/viewvc/v1/trunk/c++/src/app/netcache/netcached.ini?view=log) for descriptions of the **NetCache** server daemon configuration parameters.
1996
+
A typical **NetCache** implementation involves a load-balanced server daemon (the "service") and one or more clients that access the service through a software interface. See [netcached.ini](https://github.com/ncbi/ncbi-cxx-toolkit-public/blob/main/src/app/netcache/netcached.ini) for descriptions of the **NetCache** server daemon configuration parameters.
1997
1997
1998
1998
Two classes provide access to **NetCache** -
1999
1999
[CNetCacheAPI](https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCNetCacheAPI.html) and
@@ -2029,13 +2029,13 @@ There are multiple ways to write data to **NetCache** and read it back, but the
2029
2029
2030
2030
- Reading a blob won't delete it - it will be removed automatically when its TTL has expired, or it can be removed explicitly.
2031
2031
2032
-
-**NetCache** server daemons can specify a default TTL for their blobs using the `blob_ttl` entry in the `[netcache]` section of [netcached.ini](https://www.ncbi.nlm.nih.gov/viewvc/v1/trunk/c++/src/app/netcache/netcached.ini?view=log). There is no direct way to find the server's default TTL, but you can find it indirectly by creating a blob and calling [GetBlobInfo()](https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/ident?i=GetBlobInfo) on the new blob. For an example of this, see [CSampleNetCacheClient::DemoPutRead()](https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/source/src/sample/app/netcache/netcache_client_sample.cpp).
2032
+
-**NetCache** server daemons can specify a default TTL for their blobs using the `blob_ttl` entry in the `[netcache]` section of [netcached.ini](https://github.com/ncbi/ncbi-cxx-toolkit-public/blob/main/src/app/netcache/netcached.ini). There is no direct way to find the server's default TTL, but you can find it indirectly by creating a blob and calling [GetBlobInfo()](https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/ident?i=GetBlobInfo) on the new blob. For an example of this, see [CSampleNetCacheClient::DemoPutRead()](https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/source/src/sample/app/netcache/netcache_client_sample.cpp).
2033
2033
2034
2034
- Blob lifetime can be prolonged.
2035
2035
2036
2036
- By default, each time a blob is accessed its lifetime will be extended by the server's default `blob_ttl`. The default prolongation can be overridden by passing a TTL when accessing the blob (the passed value will apply only to that access).
2037
2037
2038
-
- Lifetime prolongation can be disabled by setting the `prolong_on_read` entry to `false` in [netcached.ini](https://www.ncbi.nlm.nih.gov/viewvc/v1/trunk/c++/src/app/netcache/netcached.ini?view=log).
2038
+
- Lifetime prolongation can be disabled by setting the `prolong_on_read` entry to `false` in [netcached.ini](https://github.com/ncbi/ncbi-cxx-toolkit-public/blob/main/src/app/netcache/netcached.ini).
2039
2039
2040
2040
-***Note:*** Calling [GetBlobSize()](https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/ident?i=GetBlobSize) will prolong a blob's lifetime (unless `prolong_on_read` is `false`), but calling [GetBlobInfo()](https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/ident?i=GetBlobInfo) will not.
0 commit comments