-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced Readme.mdown with README.md
- Loading branch information
Showing
2 changed files
with
52 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,55 @@ | ||
couchbase-aspnet | ||
================ | ||
|
||
Couchbase Asp.Net infrastructure support | ||
# Couchbase ASP.NET Library | ||
|
||
This library provides infrastructure support for using [Couchbase Server](http://couchbase.com) and ASP.NET. | ||
|
||
## Features: | ||
|
||
ASP.NET SessionState Provider | ||
|
||
* Port of the [Enyim Memcached Provider](https://github.com/enyim/memcached-providers) to Couchbase Server | ||
|
||
## Requirements | ||
|
||
* You'll need .NET Framework 3.5 or later to use the precompiled binaries. | ||
* To build the client, you'll need Visual Studio 2010 with MVC 3 installed. | ||
* The Nuget package for [CouchbaseNetClient 1.0.1](http://nuget.org/packages/CouchbaseNetClient) is referenced by Couchbase.AspNet | ||
* Couchbase Server 1.8 | ||
|
||
## Configuring the SessionState provider | ||
|
||
Update the sessionState section in Web.config as follows: | ||
|
||
<sessionState customProvider="Couchbase" mode="Custom"> | ||
<providers> | ||
<add name="Couchbase" type="Couchbase.AspNet.SessionState.CouchbaseSessionStateProvider, Couchbase.AspNet" /> | ||
</providers> | ||
</sessionState> | ||
Configure the Couchbase Client as you normally would: | ||
|
||
<section name="couchbase" type="Couchbase.Configuration.CouchbaseClientSection, Couchbase"/> | ||
|
||
<couchbase> | ||
<servers bucket="default" bucketPassword=""> | ||
<add uri="http://127.0.0.1:8091/pools/default"/> | ||
</servers> | ||
</couchbase> | ||
|
||
Note that currently, code-based configuration of the CouchbaseClient is not supported. | ||
|
||
In code, simply use the Session object as you normally would. | ||
|
||
Session["Message"] = "Couchbase is awesome!"; | ||
|
||
Be sure to mark any user defined types as Serializable. | ||
|
||
[Serializable] | ||
public class SessionUser | ||
{ | ||
public string Username { get; set; } | ||
|
||
public string Email { get; set; } | ||
} |
This file was deleted.
Oops, something went wrong.