vine-comment / vine

a 3rd party comment system [python] [javascript]
32 stars 6 forks source link

How to use memcached? #12

Open geekan opened 10 years ago

geekan commented 10 years ago

Currently we have enabled memcache mechanism, but it's not used now. 3 ways to cache: per-site, per-view, by-hand, I'm not sure which one is better, and how could we use it. The question is open. Any suggestion?

geekan commented 10 years ago

If you're using ubuntu, run sudo apt-get install memcached to install it. If you're using win x64, visit http://www.couchbase.com/communities/q-and-a/memcached-x64-version-couchbase to download prebuilt binary.

geekan commented 10 years ago

If you're using linux, check http://www.ccvita.com/257.html to configure memcached. NOTE you should use port 11211.

geekan commented 9 years ago

After knowing some best practice, we should know that set/get method is the core of memcache/redis.

So just use the set/get method anywhere you want.