System.Web.Caching Namespace

Fornece classes para armazenar em cache no servidor dados usados com frequência. Provides classes for caching frequently used data on the server.

Classes

AggregateCacheDependency

Combina várias dependências entre um item armazenado em um objeto Cache de um aplicativo ASP.NET e uma matriz de objetos CacheDependency.Combines multiple dependencies between an item stored in an ASP.NET application's Cache object and an array of CacheDependency objects. Essa classe não pode ser herdada.This class cannot be inherited.

Cache

Implementa o cache para um aplicativo Web.Implements the cache for a Web application. Essa classe não pode ser herdada.This class cannot be inherited.

CacheDependency

Estabelece uma relação de dependência entre um item armazenado no objeto Cache e um arquivo, chave de cache, uma matriz de ambos ou outro objeto CacheDependency do aplicativo ASP.NET.Establishes a dependency relationship between an item stored in an ASP.NET application's Cache object and a file, cache key, an array of either, or another CacheDependency object. A classe CacheDependency monitora as relações de dependência para que quando alguma delas seja alterada, o item armazenado cache seja automaticamente removido.The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.

CacheInsertOptions

Representa o tipo que contém opções de inserção de cache.Represents the type that contains cache insert options.

CacheStoreProvider

Fornece a interface base necessária de qualquer armazenamento de cache que queira ser conectado como a implementação de cache de objeto padrão usada por MemoryCache.Provides the base interface required of any cache store that wants to be plugged in as the default object cache implementation used by MemoryCache.

DatabaseNotEnabledForNotificationException

A exceção gerada quando um banco de dados do SQL Server não está habilitado para dar suporte às dependências associadas à classe SqlCacheDependency.The exception that is thrown when a SQL Server database is not enabled to support dependencies associated with the SqlCacheDependency class. Essa classe não pode ser herdada.This class cannot be inherited.

FileResponseElement

Representa parte de uma entrada de cache de saída, armazenada como um arquivo.Represents part of an output-cache entry, stored as a file.

HeaderElement

Representa um único cabeçalho HTTP que é incluído em uma resposta do cache de saída.Represents a single HTTP header that is included in a response from the output cache.

MemoryResponseElement

Representa a parte de uma entrada de cache de saída que é armazenada na memória.Represents part of an output-cache entry that is stored in memory.

OutputCache

Fornece acesso programático aos provedores de cache de saída especificados no arquivo de configuração para um site da Web.Provides programmatic access to the output-cache providers that are specified in the configuration file for a Web site.

OutputCacheProvider

Serve como uma classe base que contém os métodos abstratos para implementar um provedor de cache de saída.Serves as a base class that contains abstract methods for implementing an output-cache provider.

OutputCacheProviderAsync

Fornece uma classe OutputCacheProvider assíncrona.Provides an asynchronous OutputCacheProvider class.

OutputCacheProviderCollection

Representa a coleção de provedores de cache de saída que são configurados para um site.Represents the collection of output-cache providers that are configured for a Web site.

OutputCacheUtility

Fornece métodos auxiliares para configuração do cache de saída.Provides helper methods for configuring the output cache.

ResponseElement

Uma classe base abstrata que representa uma resposta HTTP no cache de saída.An abstract base class that represents an HTTP response in the output cache.

SqlCacheDependency

Estabelece uma relação entre um item armazenado em um objeto Cache do aplicativo ASP.NET e uma tabela de banco de dados do SQL Server específica ou os resultados de uma consulta no SQL Server 2005.Establishes a relationship between an item stored in an ASP.NET application's Cache object and either a specific SQL Server database table or the results of a SQL Server 2005 query. Essa classe não pode ser herdada.This class cannot be inherited.

SqlCacheDependencyAdmin

Executa tarefas administrativas necessárias em um banco de dados do SQL Server para dar suporte à classe SqlCacheDependency ao usar dependências baseadas em sondagem.Performs administrative tasks required on a SQL Server database to support the SqlCacheDependency class when using polling-based dependencies. Essa classe não pode ser herdada.This class cannot be inherited.

SubstitutionResponseElement

Representa um delegado gerenciado que pode ser chamado inserir saídas geradas dinamicamente em uma resposta de cache de saída.Represents a managed delegate that can be called to insert dynamically generated output into an output-cache response.

TableNotEnabledForNotificationException

A exceção que é gerada quando uma classe SqlCacheDependency é usada em uma tabela de banco de dados que não está habilitada para notificações de alteração.The exception that is thrown when a SqlCacheDependency class is used against a database table that is not enabled for change notifications.

Interfaces

IOutputCacheEntry

Define as coleções de cabeçalho HTTP e elementos de resposta que, juntos, constituem um tipo de dados em cache de saída que o ASP.NET pode passar para um provedor.Defines collections of HTTP header and response elements that together make up one kind of output-cached data that ASP.NET can pass to a provider.

Enumerações

CacheItemPriority

Especifica a prioridade relativa dos itens armazenados no objeto Cache.Specifies the relative priority of items stored in the Cache object.

CacheItemRemovedReason

Especifica o motivo pelo qual um item foi removido do Cache.Specifies the reason an item was removed from the Cache.

CacheItemUpdateReason

Especifica o motivo pelo qual um item de cache está sendo removido do objeto Cache.Specifies the reason that a cached item is being removed from the Cache object.

Delegados

CacheItemRemovedCallback

Define um método de retorno de chamada para notificar aplicativos quando um item em cache é removido do Cache.Defines a callback method for notifying applications when a cached item is removed from the Cache.

CacheItemUpdateCallback

Define um método de retorno de chamada para notificar aplicativos antes de um item em cache ser removido do cache.Defines a callback method for notifying applications before a cached item is removed from the cache.

Comentários

Esse namespace inclui a Cache classe, um dicionário que permite armazenar objetos de dados, como tabelas de hash e conjuntos de dados.This namespace includes the Cache class, a dictionary that enables you to store data objects such as hash tables and data sets. Ele também fornece a funcionalidade de expiração para esses objetos e métodos que permitem adicionar e remover os objetos.It also provides expiration functionality for those objects, and methods that enable you to add and remove the objects. Você pode adicionar os objetos ao cache com uma dependência em outros arquivos ou entradas de cache.You can add the objects to the cache with a dependency on other files or cache entries. Nesse caso, o Cache objeto pode invocar um método de retorno de chamada para notificar seu aplicativo quando um objeto é removido do cache.In that case, the Cache object can invoke a callback method to notify your application when an object is removed from the cache.