#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
msgid ""
msgstr ""
"Project-Id-Version: Apache Traffic Server 4.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-11-08 17:57+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../../sdk/io-guide/guide-to-cache-api.en.rst:2
msgid "Guide to the Cache API"
msgstr ""

#: ../../sdk/io-guide/guide-to-cache-api.en.rst:30
msgid ""
"The cache API enables plugins to read, write, and remove objects in the "
"Traffic Server cache. All cache APIs are keyed by an object called an "
"``TSCacheKey``; cache keys are created via ``TSCacheKeyCreate``; keys are "
"destroyed via ``TSCacheKeyDestroy``. Use ``TSCacheKeyDigestSet`` to set the "
"hash of the cache key."
msgstr ""

#: ../../sdk/io-guide/guide-to-cache-api.en.rst:36
msgid ""
"Note that the cache APIs differentiate between HTTP data and plugin data. "
"The cache APIs do not allow you to write HTTP docs in the cache; you can "
"only write plugin-specific data (a specific type of data that differs from "
"the HTTP type)."
msgstr ""

#: ../../sdk/io-guide/guide-to-cache-api.en.rst:41
msgid "**Example:**"
msgstr ""

#: ../../sdk/io-guide/guide-to-cache-api.en.rst:54
msgid "How to Do a Cache Read"
msgstr ""

#: ../../sdk/io-guide/guide-to-cache-api.en.rst:56
msgid ""
"``TSCacheRead`` does not really read - it is used for lookups (see the "
"sample Protocol plugin). Possible callback events include:"
msgstr ""

#: ../../sdk/io-guide/guide-to-cache-api.en.rst:59
msgid ""
"``TS_EVENT_CACHE_OPEN_READ`` - indicates the lookup was successful. The "
"data passed back along with this event is a cache vconnection that can be "
"used to initiate a read on this keyed data."
msgstr ""

#: ../../sdk/io-guide/guide-to-cache-api.en.rst:63
msgid ""
"``TS_EVENT_CACHE_OPEN_READ_FAILED`` - indicates the lookup was "
"unsuccessful. Reasons for this event could be that another continuation is "
"writing to that cache location, or the cache key doesn't refer to a cached "
"resource. Data payload for this event indicates the possible reason the "
"read failed (``TSCacheError``)."
msgstr ""
