Share on Facebook Share on Twitter Email
Answers.com

cache

 
Dictionary: cache   (kăsh) pronunciation
n.
    1. A hiding place used especially for storing provisions.
    2. A place for concealment and safekeeping, as of valuables.
    3. A store of goods or valuables concealed in a hiding place: maintained a cache of food in case of emergencies.
  1. Computer Science. A fast storage buffer in the central processing unit of a computer. Also called cache memory.
tr.v., cached, cach·ing, cach·es.

To hide or store in a cache. See synonyms at hide1.

[French, from cacher, to hide, from Old French, to press, hide, from Vulgar Latin *coācticāre, to store, pack together, frequentative of Latin coāctāre, to constrain, from coāctus, past participle of cōgere, to force. See cogent.]


Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics

1. A hiding place where provisions or implements are stored.

2. A place where data can be stored in a computer and retrieved more quickly than from a slower device such as a disk. For example, frequently used disk sectors are copied and stored in a disk cache in a computer's Ram so that they are accessed more quickly.

Thesaurus: cache
Top

noun

    A supply stored or hidden for future use: backlog, hoard, inventory, nest egg, reserve, reservoir, stock, stockpile, store, treasure. Slang stash. See collect/distribute.

verb

    To put or keep out of sight: bury, conceal, ensconce, hide, occult, secrete. Slang plant, stash. See show/hide.


Temporary computer storage used for quick retrieval of data in order to increase processing speed. The cached data can be stored in a reserved area of RAM, a special cache chip (separate from the CPU) that provides faster access than RAM, or on the disk drive. By keeping frequently accessed data in a rapidly accessible place, the computer can respond quickly to requests for those data without having to perform time-consuming searches of RAM or hard drives. Since a "stale" cache will contain data that have been superseded by later information, the cached data must be refreshed periodically.

For more information on cache, visit Britannica.com.


[De]

A collection of items similar to a hoard, but more likely to have been intended for recovery. See also hoard.

Word Tutor: cache
Top
pronunciation

IN BRIEF: A place for hiding or storing supplies or treasure.

pronunciation The hikers found their food cache just in time to ward off hunger.

Tutor's tip: She took a huge amount of "cash" (money) from the "cache" (hiding place) and used it to convey a certain "cachet" (status or stature).

Wikipedia: Cache
Top

In computer science, a cache (pronounced /kæʃ/) is a collection of data duplicating original values stored elsewhere or computed earlier, where the original data is expensive to fetch (owing to longer access time) or to compute, compared to the cost of reading the cache. In other words, a cache is a temporary storage area where frequently accessed data can be stored for rapid access. Once the data is stored in the cache, it can be used in the future by accessing the cached copy rather than re-fetching or recomputing the original data.

A cache has proven to be extremely effective in many areas of computing because access patterns in typical computer applications have locality of reference. There are several kinds of locality, but this article primarily deals with data that are accessed close together in time (temporal locality). The data might or might not be located physically close to each other (spatial locality).

Contents

History

Use of the word cache in the computer context originated in 1967 during preparation of an article for publication in the IBM Systems Journal. The paper concerned an exciting memory improvement in Model 85, a latecomer in the IBM System/360 product line. The Journal editor, Lyle R. Johnson, pleaded for a more descriptive term than high-speed buffer. When none was forthcoming, he suggested the noun cache, meaning a safekeeping or storage place [1]. The paper was published in early 1968, the authors were honoured by IBM, their work was widely welcomed and subsequently improved upon, and cache soon became standard usage in computer literature.[2]

Operation

Diagram of a CPU memory cache

A cache is a block of memory for temporary storage of data likely to be used again. CPUs and hard drives frequently use a cache, as do web browsers and web servers.

A cache is made up of a pool of entries. Each entry has a datum (a nugget of data) which is a copy of the datum in some backing store. Each entry also has a tag, which specifies the identity of the datum in the backing store of which the entry is a copy.

When the cache client (a CPU, web browser, operating system) wishes to access a datum presumably in the backing store, it first checks the cache. If an entry can be found with a tag matching that of the desired datum, the datum in the entry is used instead. This situation is known as a cache hit. So, for example, a web browser program might check its local cache on disk to see if it has a local copy of the contents of a web page at a particular URL. In this example, the URL is the tag, and the contents of the web page is the datum. The percentage of accesses that result in cache hits is known as the hit rate or hit ratio of the cache.

The alternative situation, when the cache is consulted and found not to contain a datum with the desired tag, is known as a cache miss. The previously uncached datum fetched from the backing store during miss handling is usually copied into the cache, ready for the next access.

During a cache miss, the CPU usually ejects some other entry in order to make room for the previously uncached datum. The heuristic used to select the entry to eject is known as the replacement policy. One popular replacement policy, least recently used (LRU), replaces the least recently used entry (see cache algorithms). More efficient caches compute use frequency against the size of the stored contents, as well as the latencies and throughputs for both the cache and the backing store. While this works well for larger amounts of data, long latencies and slow throughputs, such as experienced with a hard drive and the Internet, it is not efficient for use with a CPU cache.[citation needed]

When a datum is written to the cache, it must at some point be written to the backing store as well. The timing of this write is controlled by what is known as the write policy.

In a write-through cache, every write to the cache causes a synchronous write to the backing store.

Alternatively, in a write-back (or write-behind) cache, writes are not immediately mirrored to the store. Instead, the cache tracks which of its locations have been written over (these locations are marked dirty). The data in these locations is written back to the backing store when those data are evicted from the cache, an effect referred to as a lazy write. For this reason, a read miss in a write-back cache (which requires a block to be replaced by another) will often require two memory accesses to service: one to retrieve the needed datum, and one to write replaced data from the cache to the store.

Data write-back may be triggered by other policies as well. The client may make many changes to a datum in the cache, and then explicitly notify the cache to write back the datum.

No-write allocation is a cache policy where only processor reads are cached, thus avoiding the need for write-back or write-through when the old value of the datum was absent from the cache prior to the write.

The data in the backing store may be changed by entities other than the cache, in which case the copy in the cache may become out-of-date or stale. Alternatively, when the client updates the data in the cache, copies of that data in other caches will become stale. Communication protocols between the cache managers which keep the data consistent are known as coherency protocols.

Applications

CPU cache

Small memories on or close to the CPU can be made faster than the much larger main memory. Most CPUs since the 1980s have used one or more caches, and modern high-end embedded, desktop and server microprocessors may have as many as half a dozen, each specialized for a specific function.

Disk cache

While CPU caches are generally managed entirely by hardware, other caches are managed by a variety of software. The page cache in main memory, which is an example of disk cache, is usually managed by the operating system kernel.

While the hard drive's hardware disk buffer is sometimes misleadingly referred to as "disk cache", its main functions are write sequencing and read prefetching. Repeated cache hits are relatively rare, due to the small size of the buffer in comparison to HDD's capacity.

In turn, fast local hard disk can be used to cache information held on even slower data storage devices, such as remote servers (web cache) or local tape drives or optical jukeboxes. Such a scheme is the main concept of hierarchical storage management.

Web cache

Web caches are employed by web browsers and web proxy servers to store previous responses from web servers, such as web pages. Web caches reduce the amount of information that needs to be transmitted across the network, as information previously stored in the cache can often be re-used. This reduces bandwidth and processing requirements of the web server, and helps to improve responsiveness for users of the web.

Modern web browsers employ a built-in web cache, but some internet service providers or organizations also use a caching proxy server, which is a web cache that is shared between all users of that network.

Another form of cache is P2P caching, where the files most sought for by peer-to-peer applications are stored in an ISP cache to accelerate P2P transfers.

Other caches

The BIND DNS daemon caches a mapping of domain names to IP addresses, as does a resolver library.

Write-through operation is common when operating over unreliable networks (like an Ethernet LAN), because of the enormous complexity of the coherency protocol required between multiple write-back caches when communication is unreliable. For instance, web page caches and client-side network file system caches (like those in NFS or SMB) are typically read-only or write-through specifically to keep the network protocol simple and reliable.

Search engines also frequently make web pages they have indexed available from their cache. For example, Google provides a "Cached" link next to each search result. This is useful when web pages are temporarily inaccessible from a web server.

Another type of caching is storing computed results that will likely be needed again, or memoization. An example of this type of caching is ccache, a program that caches the output of the compilation to speed up the second-time compilation.

Database caching can substantially improve the throughput of database applications, for example in the processing of indexes, data dictionaries, and frequently used subsets of data.

The difference between buffer and cache

The terms are not mutually exclusive and the functions are frequently combined; however, there is a difference in intent. A buffer is a temporary memory location, that is traditionally used because CPU instructions cannot directly address data stored in peripheral devices. Thus, addressable memory is used as intermediate stage.

Additionally such a buffer may be feasible when a large block of data is assembled or disassembled (as required by a storage device), or when data may be delivered in a different order than that in which it is produced. Also a whole buffer of data is usually transferred sequentially (for example to hard disk), so buffering itself sometimes increases transfer performance. These benefits are present even if the buffered data are written to the buffer once and read from the buffer once.

A cache also increases transfer performance. A part of the increase similarly comes from the possibility that multiple small transfers will combine into one large block. But the main performance gain occurs because there is a good chance that the same datum will be read from cache multiple times, or that written data will soon be read. A cache's sole purpose is to reduce accesses to the underlying slower storage. Cache is also usually an abstraction layer that is designed to be invisible from the perspective of neighbouring layers.

References

  1. ^ "cache: definition from answers.com". http://www.answers.com/topic/cache. Retrieved 2009-02-06. 
  2. ^ G. C. Stierhoff and A. G. Davis. A History of the IBM Systems Journal. IEEE Annals of the History of Computing, Vol. 20, No. 1 (Jan. 1998), pages 29-35. [1]

Further reading


Translations: Cache
Top

Dansk (Danish)
n. - depot, gemmested, forråd
v. tr. - opmagasinere, skjule

idioms:

  • cache memory    cachehukommelse

Nederlands (Dutch)
(geheime) bewaarplaats, verborgen voorraad/ schat, voorgeheugen van computer, verbergen

Français (French)
n. - cache
v. tr. - cacher

idioms:

  • cache memory    (Comput) mémoire cache

Deutsch (German)
n. - (geheimes) Lager
v. - verstecken

idioms:

  • cache memory    Cachespeicher

Ελληνική (Greek)
n. - κρύπτη, κρυψώνα(ς) (τροφίμων, όπλων, ναρκωτικών), κρυφό απόθεμα, (Η/Υ) λανθάνουσα/κρυφή μνήμη
v. - κρύβω, καταχωνιάζω

idioms:

  • cache memory    (Η/Υ) λανθάνουσα/κρυφή μνήμη

Italiano (Italian)
cache, riserva, nascondere

Português (Portuguese)
n. - esconderijo (m) de provisões, memória (f) cache (Inf.)
v. - esconder

Русский (Russian)
тайник, прятать в тайник

Español (Spanish)
n. - escondite, escondrijo
v. tr. - esconder, ocultar

idioms:

  • cache memory    (informática) memoria cache

Svenska (Swedish)
n. - gömställe, depå, cacheminne
v. - gömma

中文(简体)(Chinese (Simplified))
贮藏所, 快速缓冲贮存区, 隐藏处, 隐藏, 窖藏

idioms:

  • cache memory    高速缓冲存储器

中文(繁體)(Chinese (Traditional))
n. - 貯藏所, 快速緩衝貯存區, 隱藏處
v. tr. - 隱藏, 窖藏

idioms:

  • cache memory    高速緩衝記憶體

한국어 (Korean)
n. - 은닉처, 저장물
v. tr. - 저장하다, 숨기다

日本語 (Japanese)
n. - 隠し場所, 隠匿物, 貯蔵物
v. - 隠す, 貯える

العربيه (Arabic)
‏(الاسم) مكان سري, مخبأ (فعل) خبأ شيئا ما في مكان سري‏

עברית (Hebrew)
n. - ‮מחבוא, מטמון‬
v. tr. - ‮החביא, הטמין‬


Best of the Web: cache
Top

Some good "cache" pages on the web:


Web Marketing
www.marketingterms.com
 

How?
computer.howstuffworks.com
 
Shopping: cache
Top
 
 

 

Copyrights:

Dictionary. The American Heritage® Dictionary of the English Language, Fourth Edition Copyright © 2007, 2000 by Houghton Mifflin Company. Updated in 2009. Published by Houghton Mifflin Company. All rights reserved.  Read more
Business Dictionary. Dictionary of Business Terms. Copyright © 2000 by Barron's Educational Series, Inc. All rights reserved.  Read more
Thesaurus. Roget's II: The New Thesaurus, Third Edition by the Editors of the American Heritage® Dictionary Copyright © 1995 by Houghton Mifflin Company. Published by Houghton Mifflin Company. All rights reserved.  Read more
Britannica Concise Encyclopedia. Britannica Concise Encyclopedia. © 2006 Encyclopædia Britannica, Inc. All rights reserved.  Read more
Archaeology Dictionary. The Concise Oxford Dictionary of Archaeology. Copyright © 2002, 2003 by Oxford University Press. All rights reserved.  Read more
Word Tutor. Copyright © 2004-present by eSpindle Learning, a 501(c) nonprofit organization. All rights reserved.
eSpindle provides personalized spelling and vocabulary tutoring online; free trial Read more
Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Cache" Read more
Translations. Copyright © 2007, WizCom Technologies Ltd. All rights reserved.  Read more