Skip to content

diginsight/smartcache.samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

INTRODUCTION

Welcome to the DigiInsight smartcache.samples repository.
This repository contains sample code and examples to help you understand and effectively use the DigiInsight SmartCache.

The samples cover a wide range of use cases and demonstrate the capabilities and features of the SmartCache. Whether you're a beginner or an experienced developer, these samples will provide valuable insights into the workings of DigiInsight SmartCache.

GETTING STARTED

Step 01: clone the repo and open SmartCache.Samples.sln solution

alt text

you can use the following solutions:

  • SmartCache.Samples.sln to run the samples using diginsight as a package reference.

  • SmartCache.Samples.Debug.sln to run the samples using diginsight code as a project reference

    pleae, note that diginsight telemetry and smartcache repositories must also be cloned on the same root folder as smartcache.samples repository.

Step 02: run SampleWebApi and call getplants operation

After running the sample you'll obtain se service swagger shown: alt text

After calling the operation your %userprofile%\LogFiles\Diginsight folder will contain the SampleWebApi log file: alt text

Please note the call has a cache miss from PlantsController.GetPlantsAsync and latency is over 1 second when obtaining data from PlantsController.GetPlantsImplAsync. alt text

Step 02:call getplants operation a second time

The second time you call PlantsController.GetPlantsAsync you'll get a cache hit and latency will be 5ms.

alt text

Reference

The following articles discuss the details of Diginsight.SmartCache use and configuration:

Additional information

Additional information is available in the following articles:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages