Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Security Level: Public
    • Labels:
      None

      Description

      Hi

      I think this is a dump question but here goes.

      If you read about how to use Memcached it is often like this:

      //write query
      $sql = "select * from somewhere where something=something";
      //create an index key for memcache
      $key = md5('query'.$sql);
      //lookup value in memcache
      $result = $memcache->get($key);
      //check if we got something back
      if($result == null) {
      //fetch from database
      $result_sql = mysql_query($sql) or die(mysql_error()." : $sql");
      if(mysql_num_rows($result_sql)> 0) {
      $result = mysql_fetch_object($result_sql);
      //store in memcache

      Read more https://techzone.couchbase.com/forums/node/1000807


      This is an automatic message from Couchbase Forums
      To manage your subscriptions, browse to
      https://techzone.couchbase.com/forums/user/1000697/notifications
      You can unsubscribe at
      https://techzone.couchbase.com/forums/notifications/unsubscribe/sid/11?signature=2cd5666dcfbd5c6bddb823939d508cd2

      [Created via e-mail received from: "community_admin@couchbase.com" <community_admin@couchbase.com>]

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            perry Perry Krug
            Reporter:
            perry Perry Krug
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes