Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1084)

Unified Diff: DB/API_REST/mem_connect.php

Issue 334860043: all DB code commented
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: DB/API_REST/mem_connect.php
diff --git a/DB/API_REST/mem_connect.php b/DB/API_REST/mem_connect.php
index 97e7430b9e9d1ad67fda9fe5fee29ee0efdab4db..84b4146a6f4cfddcc64bd0b75ffc7caba90b387d 100644
--- a/DB/API_REST/mem_connect.php
+++ b/DB/API_REST/mem_connect.php
@@ -1,9 +1,14 @@
<?php
-$memcache_host = "127.0.0.1";
-$memcache_port = '11211';
+//memcached is a php module to store data into the cache very effectively.
+//each value is stored with a key
+//memcached work as a service on the VM
+//to start the service memcached:
+//sudo service memcached start
Vasileios Papageorgiou 2017/10/18 09:19:48 Good point! As we discussed try in future to put i
+$memcache_host = "127.0.0.1"; //memcached is running on localhost
+$memcache_port = '11211'; //memcached is running on port 11211
-$memcache = new Memcached;
-$memcache->addServer($memcache_host,$memcache_port);
+$memcache = new Memcached; //we create a new memcached
+$memcache->addServer($memcache_host,$memcache_port); //we allow our REST API to use memcached service
?>
« no previous file with comments | « DB/API_REST/daemon_DB.sh ('k') | DB/API_REST/print_cache.php » ('j') | DB/API_REST/request.php » ('J')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b