diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-05-22 23:23:00 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-05-22 23:23:00 +0000 |
commit | 0bfa618303d09f10301b522b18ac0a2e72ce3def (patch) | |
tree | dbce9cc566e06d63da06e1e3bfc35660791f1c89 /sca-cpp/trunk/components/cache | |
parent | 366bef62c8cbfa08a3e32e13dfe01e2800b601e5 (diff) |
Change Memcached component to use localhost instead of 127.0.0.1.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@947348 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/components/cache')
-rw-r--r-- | sca-cpp/trunk/components/cache/memcache-test.cpp | 4 | ||||
-rw-r--r-- | sca-cpp/trunk/components/cache/memcache.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sca-cpp/trunk/components/cache/memcache-test.cpp b/sca-cpp/trunk/components/cache/memcache-test.cpp index ea9e9883dc..04c4b7d347 100644 --- a/sca-cpp/trunk/components/cache/memcache-test.cpp +++ b/sca-cpp/trunk/components/cache/memcache-test.cpp @@ -33,7 +33,7 @@ namespace tuscany { namespace memcache { bool testMemCached() { - MemCached ch("127.0.0.1", 11211); + MemCached ch("localhost", 11211); const value k = mklist<value>("a"); assert(hasContent(post(k, string("AAA"), ch))); @@ -59,7 +59,7 @@ struct getLoop { bool testGetPerf() { const value k = mklist<value>("c"); - MemCached ch("127.0.0.1", 11211); + MemCached ch("localhost", 11211); assert(hasContent(post(k, string("CCC"), ch))); const lambda<bool()> gl = getLoop(k, ch); diff --git a/sca-cpp/trunk/components/cache/memcache.cpp b/sca-cpp/trunk/components/cache/memcache.cpp index 247e38d517..246b6137b3 100644 --- a/sca-cpp/trunk/components/cache/memcache.cpp +++ b/sca-cpp/trunk/components/cache/memcache.cpp @@ -112,7 +112,7 @@ private: */ const failable<value> start(unused const list<value>& params) { // Connect to memcached - memcache::MemCached& ch = *(new (gc_new<memcache::MemCached>()) memcache::MemCached("127.0.0.1", 11211)); + memcache::MemCached& ch = *(new (gc_new<memcache::MemCached>()) memcache::MemCached("localhost", 11211)); // Return the component implementation lambda function return value(lambda<value(const list<value>&)>(applyCache(ch))); |