tree: 2db117f48c016eb1c98ef959ebe951e8b075c8c6 [path history] [tgz]
  1. Program.cs
  2. README.md
  3. startserver.ps1
  4. stopserver.ps1
examples/dotnet/PutGetRemove/README.md

PutGetRemove Example

This is a very simple example showing how to create a Cache using the CacheFactory, configure a Pool with a PoolFactory, and configure a Region with a RegionFactory. We then put, get, and remove some primitive data in the region.

Prerequisites

Running

  • Start Geode Server and create region.

    gfsh>start locator --name=locator
    gfsh>start server --name=server
    gfsh>create region --name=example_userinfo --type=PARTITION
    
  • Execute Apache.Geode.Examples.PutGetRemove.exe.

    output:

    Storing id and username in the region
    Getting the user info from the region
    rtimmons = Robert Timmons
    scharles = Sylvia Charles
    Removing rtimmons info from the region
    Info for rtimmons has been deleted