---
title: createMemcacheSessionStorage
---

# createMemcacheSessionStorage

<a href="https://github.com/remix-run/remix/blob/remix@3.0.0-alpha.6/packages/session-storage-memcache/src/lib/memcache-storage.ts#L42" target="_blank">View Source</a>

## Summary

Creates a session storage that stores all session data in Memcache.

Note: This storage requires a Node.js runtime with TCP socket support.

## Signature

```ts
function createMemcacheSessionStorage(
  server: string,
  options: MemcacheSessionStorageOptions,
): SessionStorage;

```

## Params

### server

The Memcache server in `host:port` format

### options

(optional) The options for the session storage

## Returns

The session storage