Troubleshooting

Expand all | Collapse all

connecting GridGain server cache from memcache-binary client

  • 1.  connecting GridGain server cache from memcache-binary client

     
    Posted 07-11-2019 08:44 AM
    I have GridGain running in a remote server and I need to get data from GridGain using memcache-binary client. I'm able to connect to the GridGain server but not able to connect to cache inside GridGain.
    var MemcachedBinary = require('memcached-binary');
    
    var server = 'gridgain:port';
    
    var params = { 
      use_buffers: false, // If true, always return Buffers instead of strings
      // defaults to false
    };
    
    var memcached_binary = new MemcachedBinary(server, params);
    
    memcached_binary.get('DG', params, function(err, res) {
        if( err ) 
            console.error( err );
        console.log(res);
    });​

    DG is one cache inside the GridGain server. The connection is getting closed(FIN) by GridGain and when i do get connected, it's not returning anything. Is there a way to specifically connect to cachename and get data from tables inside cache in memcached-binary?



    ------------------------------
    Chris
    ------------------------------


  • 2.  RE: connecting GridGain server cache from memcache-binary client

     
    Posted 07-13-2019 09:21 AM
    I guess it is not possible to specify cache name for memcached protocol (using default). However, GridGain Community Edition should have native node.js client which will allow wide range of cache operations.

    ------------------------------
    Harry Eighmy
    Developer
    Brooksource
    ------------------------------



Would you attend a July Meetup?


Announcements

  • Welcome to the new GridGain Forums!

    Hello and welcome to the new GridGain Forums. This is the place to ask questions, get or give advice and connect with your peers. GridGain experts regularly monitor these posts and can also help solve your issues.