Skip to content

Commit 9cc4d15

Browse files
authored
Update ch_app.md
Switched viewvc links to Git
1 parent 917c59b commit 9cc4d15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pages/ch_app.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,7 +1993,7 @@ The following topics explain how to use NetCache from an application:
19931993

19941994
#### The basic ideas
19951995

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.
19971997

19981998
Two classes provide access to **NetCache** -
19991999
[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
20292029

20302030
- Reading a blob won't delete it - it will be removed automatically when its TTL has expired, or it can be removed explicitly.
20312031

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).
20332033

20342034
- Blob lifetime can be prolonged.
20352035

20362036
- 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).
20372037

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).
20392039

20402040
- ***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.
20412041

0 commit comments

Comments
 (0)