The doc you are pointing; tries to create region using Functions.
You can use the samples given there and modify as per your requirement or 
create a new one.

Here is reference doc about function execution:
https://geode.apache.org/docs/guide/14/developing/function_exec/function_execution.html

The clear() op is supported on replicated region but not on partitioned region. 
You can create a function to achieve the clear (similar to creating region) 
either by calling clear or deleting the region entries by iterating over them.

-Anil.


On 12/17/20, 4:51 AM, "ankit Soni" <ankit.soni.ge...@gmail.com> wrote:

    Hello,

    I have started using geode (1.12) in recent time and  looking to achieve
    the following from a *java based geode-client program.*

     1.* create REPLCIATED and PARTITION regions from the client itself and
    while creating it, need to provide a config that deletes the entries at
    specified time.*

     2. *clear entries of a region from the client..*

    I am exploring geode doc and have come across the following but unable to
    understand what code i need to write in the geode-client java program.
    
https://geode.apache.org/docs/guide/14/developing/region_options/dynamic_region_creation.html

    Can some guide me on how to achieve this...?

    -Ankit.

Reply via email to