aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2014-12-21 22:03:42 -0800
committerchrislusf <chris.lu@gmail.com>2014-12-21 22:03:42 -0800
commit1384fed3ebaf8c93d1568fb97d4d74a17101ece7 (patch)
treeb6ae45c106ca9b735a48eb2fbf1fe1bafb7f0c30 /docs
parentc9b0cec5b890e6c080c0c05061efa68117e68af1 (diff)
downloadseaweedfs-1384fed3ebaf8c93d1568fb97d4d74a17101ece7.tar.xz
seaweedfs-1384fed3ebaf8c93d1568fb97d4d74a17101ece7.zip
Update ttl.rst
Diffstat (limited to 'docs')
-rw-r--r--docs/ttl.rst2
1 files changed, 0 insertions, 2 deletions
diff --git a/docs/ttl.rst b/docs/ttl.rst
index 0d36ec547..97356e5a7 100644
--- a/docs/ttl.rst
+++ b/docs/ttl.rst
@@ -12,12 +12,10 @@ How to use it?
Assume we want to store a file with TTL of 3 minutes.
First, ask the master to assign a file id to a volume with a 3-minute TTL:
-.. code-block:: bash
> curl http://localhost:9333/dir/assign?ttl=3m
{"count":1,"fid":"5,01637037d6","url":"127.0.0.1:8080","publicUrl":"localhost:8080"}
Secondly, use the file id to store on the volume server
-.. code-block:: bash
> curl -F "file=@x.go" http://127.0.0.1:8080/5,01637037d6?ttl=3m
After writing, the file content will be returned as usual if read before the TTL expiry. But if read after the TTL expiry, the file will be reported as missing and return the http response status as not found.