Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3940190
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:23:18+00:00 2026-05-20T00:23:18+00:00

I need to utilize the Cache object in ASP.NET to store some data with

  • 0

I need to utilize the Cache object in ASP.NET to store some data with a file dependency but I can’t have it available to the rest of the application. There could be some security violations if someone set the cache item to something different.

I couldn’t find a way to say the cache item is private to my assembly.

I was expecting to be able to create my own new Cache(), but checking for a value, mycache[“Value”] != null, is throwing an null reference exception from the inards of the object. I’m assuming because the Server.Cache object is created with some other stuff that initializes the Cache object correctly.

Does anyone know how I can make an item private, or initialize my own Cache object?

EDIT: Inserting an item also throws a null reference exception. mycache.Insert(“item”, true)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T00:23:19+00:00Added an answer on May 20, 2026 at 12:23 am

    If you mean private in the sense that you’re creating a component that you will distribute to other programmers, and you want to cache stuff with your component but hide the cache item details that you’re caching from programmer’s prying eyes, you can’t use Cache that way.

    You can encrypt your cache items though. Providing your encryption scheme is secure, programmers will be able to override your cached items, but you will always be the only one who can decrypt your encrypted values. If decryption fails, then you know that the cache has been tampered with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For my application, I need to handle encrypted ZIP files. Despite their horrific looking
For my application, I need to handle encrypted ZIP files. Despite their horrific looking
I need to write a module for Apache. The server will be running under
We want to store positions of objects on a map in a database. Queries
We have a one Java Swing app. Now there is one requirement that it
I have a form with 2 controls on it. Control 1 has several search
Is it a correct assessment that compiling with -m32 and -mtune=native on a AMD64
I've created this view that is painfully slow to query and creating performance issues.
The default string normalization (provided by the Doctrine_Inflector::urlize() sluggifier) isn't suitable for my project,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.