forked from w3c/automotive-viss2
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from UlfBj/master
Tutorial datastore update
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: "VISSR Memcached" | ||
--- | ||
|
||
## Memcached state storage | ||
Quoting from the [Memcached](https://memcached.org/) site, "Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects)". | ||
The key is in this context the path, and the value is a JSON string containing the value and the associated time stamp. | ||
|
||
The memcached store is started as a daemon, which is not automatically terminated when the server terminates. | ||
The commands below can be used to manually terminate the memcached daemon. | ||
|
||
$ ps -A | grep "memcached" | ||
|
||
then remove it with the command | ||
|
||
$ kill pid | ||
|
||
where pid comes from the result of the first command. | ||
|
||
Communication with the Memcached daemon is for security reasons configured to use Unix domain sockets. This requires that the socket file, and the directory it is stored in exist. | ||
If not then create it with the commands | ||
|
||
$ makedir path-to-socket-file-directory | ||
|
||
$ touch socket-file-name |
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