tree: a55d41e5c19d4aee8370dfa30ec5ef8837e9c841 [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