Commit 9772767
Example CacheLib with Proxygen
Summary:
For some benchmarking we like to have the network stack included - here is a simple example of adding CacheLib on top of proxygen for receiving data via HTTP request.
## Quick Setup (assumes dependencies live at CacheLib/opt)
### Build and run
```
getdeps.py install-system-deps cachelib
getdeps.py build --allow-system-packages cachelib
getdeps.py build --allow-system-packages proxygen
./build.sh
./build/proxygen_cache
```
### PUT a value
`curl -X PUT --data-binary 'hello world' http://localhost:8111/cache/greeting -i`
### GET it back
`curl http://localhost:8111/cache/greeting -i`
### DELETE it
`curl -X DELETE http://localhost:8111/cache/greeting -i`
X-link: facebook/CacheLib#416
Reviewed By: SamirFarhat17
Differential Revision: D84167914
Pulled By: juwinviray
fbshipit-source-id: 068a7d0d1d3dcb1ca7446a736c79f59a5c0e7fa01 parent 55a14cb commit 9772767
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
0 commit comments