Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

Using Memcacher

Memcacher provides a memcached service that you can use to increase performance of your applications. Installing the add-on is simple and is automatically integrated with your current client configuration if you're using the Enyim memcached client. If you prefer to use another client you can easily fetch the necessary configuration variables from your appsettings to connect to your memcached bucket. Both approaches are described below.

Memcacher buckets are only available from AppHarbor applications servers and you cannot access them from outside hosts.

Automatic Installation

If you're using the Enyim Memcached client and use your configuration file to configure it you're in luck. We'll simply replace <enyim.com> configuration section when your application is deployed with the values from the memcacher add-on.

In development you could have a configuration like this in your configuration file:

<configSections>
  <sectionGroup name="enyim.com">
    <section name="memcached" type="Enyim.Caching.Configuration.MemcachedClientSection, Enyim.Caching" />
  </sectionGroup>
</configSections>

<enyim.com>
  <memcached protocol="Binary">
    <servers>
      <add address="localhost" port="11211" />
    </servers>
    <authentication
        type="Enyim.Caching.Memcached.PlainTextAuthenticator, Enyim.Caching"
            userName="username"
            password="password"
            zone="AUTHZ"
            />
  </memcached>
</enyim.com>

During development you can use any memcached server and we can recommend using Couchbase's Membase Server which is available for Windows too.

Note: The authentication section of the configuration above is only necessary if you need to authenticate to reach your memcached server.

Manual Installation

If you prefer to use another client you can do so by fetching the relevant configuration from your appSettings. You can see the values and name of the appSettings keys on your application's page under "Variables". The variables are called: MEMCACHER_USERNAME, MEMCACHER_PASSWORD, MEMCACHER_ADDRESS and MEMCACHER_PORT.