Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Caching the api data for a user session in GQI – automation script

Solved341 views10th January 2025Automation script cache GQI Data Source
2
Baranisudha Murugesan784 9th January 2025 0 Comments

I have referred the below doc to implement user session based caching, i can see the caching is working fine, but i need clarity on what is the purpose of the file when we dont have any logic to store anything on it. If i want to customize the code by myself what is expected to be saved in the text file?

private static readonly string _cacheBreakerPath = @”C:\Skyline DataMiner\Documents\Ad hoc cache\resultsCacheBreaker.txt”;

private void CheckCacheValidation() {

if (!File.Exists(_cacheBreakerPath)) return;

lock (_groupToCache) {

try { _

logger.Information(“Going to remove cache.”);
if (!File.Exists(_cacheBreakerPath)) return;

_groupToCache.Clear();

File.Delete(_cacheBreakerPath);

_logger.Information(“Remove cache.”);

}

catch (Exception ex) {

_logger.Error(ex, “Could not delete cache.”); } } }

Kindly check the below link for full source code example.

Scaling an ad hoc data source | DataMiner Docs

Baranisudha Murugesan Selected answer as best 10th January 2025

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Tom Waterbley [SLC] [DevOps Catalyst]8.89K Posted 10th January 2025 0 Comments

Hi Baranisuha,

The purpose of the resultsCacheBreaker.txt file is to provide a way to clear the cache if it becomes out of sync with the system for any reason. It’s an additional safety mechanism, but this situation should actually never occur.

Under normal circumstances, the file does not exist. But if for whatever reason the cache needs to be cleared (without restarting the agent), an empty resultsCacheBreaker.txt can be created. When the code detects this file, it will clear the cache and then delete the file automatically again.

Baranisudha Murugesan Selected answer as best 10th January 2025
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs