Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

Set Transcoder

1 reply [Last post]
  • Login or register to post comments
Wed, 02/06/2013 - 15:54
sphildreth
Offline
Joined: 02/06/2013
Groups: None

Hi,

Moving from MembaseClient to CouchbaseClient and this code is giving me trouble, trying to set the transcoder for the client we have several transcoders and our unit tests iterate over our objects to see which performs best. Code;

        public void SetTranscoder(Enyim.Caching.Memcached.ITranscoder transcoder)
        {
            this.Close(true);
            this._clientConfiguration.Transcoder = transcoder;
            this._client = new CouchbaseClient(this._clientConfiguration);
            this.IsOpen = true;
        }

I keep getting this error;

Cannot implicitly convert type 'Enyim.Caching.Memcached.ITranscoder' to 'Enyim.Caching.Configuration.ProviderElement<Enyim.Caching.Memcached.ITranscoder>'	

Suggestions?

Top
  • Login or register to post comments
Mon, 02/11/2013 - 09:34
john
Offline
Joined: 01/05/2012
Groups: None

Is the _clientConfiguration variable an instance of a CouchbaseClientSection or a CouchbaseClientConfiguration? CouchbaseClientSection's Transcoder property is an IProviderFactory, not an ITranscoder.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker