Working with Regions and Tags. var dcf = new DataCacheFactory(); //get the cache named "TestCache" var cache = dcf.GetCache("TestCache"); //Add a region.

Slides:



Advertisements
Similar presentations
1 VBScript Session What we learn last session? Regulars Expressions. Methods and properties. How to use the object and his collections. How to create.
Advertisements

Tutorial 5 Windows and Frames Section A - Working with Windows.
HA, locking, and callbacks. Application PUT(K2, V2) Cache2 Cache1 Cache3 Primary for Get(K2) Primary for K3, V3 AppFabric Caching Client Routing Table.
ADD Materials into a Folder From FOLDERS tab Select ‘FOLDERS’
LINQ and Collections An introduction to LINQ and Collections.
Extension Methods, Anonymous Types LINQ Query Keywords, Lambda Expressions Svetlin Nakov Telerik Corporation
OpenSocial CS : Survey of Contemporary Technologies.
Thread blocks Waiting… Thread Context Hosted Compute Blob Storage Blob Storage Hosted Compute.
Python, CGI November 23, Unit 8. So Far We can write programs in Python (in theory at least) –Conditionals –Variables –While loops We can create a form.
Signature Based Concurrency Control Thomas Schwarz, S.J. JoAnne Holliday Santa Clara University Santa Clara, CA 95053
Programming the Cache API. namespace Microsoft.ApplicationServer.Caching { public sealed class DataCacheFactory : IDisposable { public DataCacheFactory();
Iterator Pattern Dr. Neal CIS 480. Iterator An iterator pattern can be used when one class is a collection of things and would like to provide a standardized.
Ingo Rammer thinktecture.
1 CS428 Web Engineering Lecture 19 Data Types (PHP - II)
. If the PHP server is an server or is aware of which server is the server, then one can write code that s information. –For example,
XML files (with LINQ). Introduction to LINQ ( Language Integrated Query ) C#’s new LINQ capabilities allow you to write query expressions that retrieve.
Exercise Simplify 5x + 3y – x + 10y. 4x + 13y. Simplify 74 – 5m – 2m – 8. – 7m + 66 Exercise.
Memcached HTTPd mcd DB HTTPd mcd [memcached 설치 및 구동 ] -- memory object caching system *) 설정 없음 1. 설치 - memcached or /usr/ports/databases/memcached.
DNS and C# SWE 344 Internet Protocols & Client Server Programming.
Software Architecture for ColdFusion Developers Unit 4: Application Events and Global Variables.
HeuristicLab. Motivation  less memory pressure no DOM single pass linear process  less developer effort no interfaces to implement  modularity & flexibility.
Microsoft ASP.NET: An Overview of Caching. 2 Overview  Introduction to ASP.NET caching  Output caching  Data caching  Difference between Data Caching.
Azure in a Day Training Azure Queues Module 1: Azure Queues Overview Module 2: Enqueuing a Message – DEMO: Creating Queues – DEMO: Enqueuing a Message.
HTML5. HTML5’s overall theme The browser as a rich application platform rich, cross-device user interfaces offline operation capability hardware access.
Using xalan extensions to get the current date and time.
Generalized Containers CSIS 3701: Advanced Object Oriented Programming.
Maintaining State MacDonald Ch. 9 MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
PHP Introduction Bill Jerome. PHP Hypertext Preprocessor No joke, that’s what it stands for Now very widely used for websites Only three years ago it.
Caching Chapter 12. Caching For high-performance apps Caching: storing frequently-used items in memory –Accessed more quickly Cached Web Form bypasses:
ASP.NET Caching - Pradeepa Chandramohan. What is Caching? Storing data in memory for quick access. In Web Application environment, data that is cached.
Introduction to Programming (in JavaScript) in 10 minutes …hopefully Else.
CSCI 6962: Server-side Design and Programming Java Server Faces Scoping and Session Handling.
… Application /Web Tier UsersUsers DatabaseDatabase Data tier Application Asp.Net app Session cart hosted in memory Asp.Net app Session cart hosted.
Designing and Delivering Scalable and Resilient Web Services Ron Jacobs Sr. Technical Evangelist, Microsoft
Variables and Assignment CSIS 1595: Fundamentals of Programming and Problem Solving 1.
Cookies (continue). Extracting Data From Cookies Data retrieved from a cookie is a simple text string. While there is no specific JavaScript function.
IBM TSpaces Lab 2 Customizing tuples and fields. Summary Blocking commands Tuple Expiration Extending Tuples (The SubclassableTuple) Reading/writing user.
Ingo Rammer thinktecture
Page 1 – Spring 2010Steffen Vissing Andersen Software Development with UML and Java 2 SDJ I2, Spring 2010 Agenda – Week 8 Linked List (a reference based.
Satisfy Your Technical Curiosity C# 3.0 Raj Pai Group Program Manager Microsoft Corporation
Using variable Variables are used to store values.
Unit Testing Part 2: Drivers and Stubs
FUNCTIONAL PROGRAMING AT WORK - HASKELL AND DOMAIN SPECIFIC LANGUAGES Dr. John Peterson Western State Colorado University.
Additional Slides By Professor Mary Jane Irwin Pennsylvania State University Group 1.
Using Text Edit. Create Folders to Organize a Site  Identify the location where you are storing your Web sites. Ask your teacher for help if needed.
Session, TempData, Cache Andres Käver, IT Kolledž
David Stotts Computer Science Department UNC Chapel Hill.
Chapter  Array-like data structures  ArrayList  Queue  Stack  Hashtable  SortedList  Offer programming convenience for specific access.
JQuery form submission CIS 136 Building Mobile Apps 1.
© Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel 1 בס " ד.
Phonegap Bridge – Storage CIS 136 Building Mobile Apps 1.
Building Web Applications with Microsoft ASP
C function call conventions and the stack
SESSION CODE: ASI313 Windows Server AppFabric Caching: What It Is and When You Should Use It Jon Flanders.
البرمجة بلغة الفيجول بيسك ستوديو
البرمجة بلغة فيجول بيسك ستوديو
Windows Server AppFabric Cache
Module 1–Windows AppFabric Cache
We at Eve Beauty Source are offering an exclusive
Bob Tabor | Microsoft Azure Fundamentals: Data Understanding Microsoft Azure Storage Queues Bob Tabor |
jQuery form submission
Interconnect with Cache Coherency Manager
kbkjlj/m/lkiubljj'pl;
CSE 373: Data Structures and Algorithms
CSE 373 Data Structures and Algorithms
CSE 373: Data Structures and Algorithms
STORE MANAGER RESPONSIBILITIES.
CS 2 2/25/2015 File Exists?.
Basic 9 Mr. Husch.
Implementing Functions: Overview
Presentation transcript:

Working with Regions and Tags

var dcf = new DataCacheFactory(); //get the cache named "TestCache" var cache = dcf.GetCache("TestCache"); //Add a region named "region1" - returns false //if already exists var ret = cache.CreateRegion("region1", false);

public DataCacheItemVersion Add(string key, object value, string region); public DataCacheItemVersion Add(string key, object value, TimeSpan timeout, string region); public DataCacheItemVersion Put(string key, object value, string region); public DataCacheItemVersion Put(string key, object value, TimeSpan timeout, string region); Parameterdescription keyKey of item in the distributed cache valueValue of object stored in the cache (serialized) timeoutHow long before the item should expire regionNamed region to place item

namespace Microsoft.ApplicationServer.Caching { public sealed class DataCacheItem { public DataCacheItem(); public string CacheName { get; internal set; } public string Key { get; } public string RegionName { get; internal set; } public ReadOnlyCollection Tags { get; } public TimeSpan Timeout { get; } public object Value { get; internal set; } public DataCacheItemVersion Version { get; } }

public DataCacheItemVersion Add(string key, object value, IEnumerable tags); public DataCacheItemVersion Add(string key, object value, IEnumerable tags, string region); public DataCacheItemVersion Add(string key, object value, TimeSpan timeout, IEnumerable tags); public DataCacheItemVersion Add(string key, object value, TimeSpan timeout, IEnumerable tags, string region); public DataCacheItemVersion Put(string key, object value, IEnumerable tags); public DataCacheItemVersion Put(string key, object value, IEnumerable tags, string region); public DataCacheItemVersion Put(string key, object value, TimeSpan timeout, IEnumerable tags); public DataCacheItemVersion Put(string key, object value, TimeSpan timeout, IEnumerable tags, string region);

public IEnumerable > GetObjectsByAllTags(IEnumerable tags, string region); public IEnumerable > GetObjectsByAnyTag(IEnumerable tags, string region); public IEnumerable > GetObjectsByTag(DataCacheTag tag, string region); public IEnumerable > GetObjectsInRegion(string region);