Giter Club home page Giter Club logo

pccserver's Introduction

Pivotal Cloud Cache Server

Overview

This runs an embedded spring-boot based pcc (gemfire/geode) cache server that will have both manager and locator part of it.

Getting Started

As always with spring-boot, a simple annotation would get you started. Annotate the main class with

@CacheServerApplication

to get started with an embedded cache server. Following annotations would configure manager and locator as well.

@EnableLocator
@EnableManger

Customization

If the default needs to be changed, let’s say the locator listen port needs to be custom configured, then

@EnableLocator(port = 20388)

In a similar way, other options can be configured for the manager and cache server.

Cache creation

Following code would initialize the Partitioned cache region in the embedded server,

@Bean(name = "formula1region")
	PartitionedRegionFactoryBean formual1Region(Cache gemfireCache) {
		PartitionedRegionFactoryBean f1 = new PartitionedRegionFactoryBean<>();
		f1.setCache(gemfireCache);
		f1.setClose(false);
		f1.setPersistent(false);
		return f1;
	}

This initialises a region named formula1region in the embedded cache server.

pccserver's People

Contributors

srinivasa-vasu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.