<?xml version="1.0" encoding="EUC-KR" ?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
<!-- English Revision: 421174 -->

<!--
 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.
-->

<modulesynopsis metafile="mod_mem_cache.xml.meta">

<name>mod_mem_cache</name>
<description>URI¸¦ Å°·Î »ç¿ëÇÏ¿© ³»¿ëÀ» Ä³½¬ÇÑ´Ù.</description>
<status>Experimental</status>
<sourcefile>mod_mem_cache.c</sourcefile>
<identifier>mem_cache_module</identifier>

<summary>
    <note type="warning">
      ÀÌ ¸ðµâÀº ½ÇÇèÀûÀÎ »óÅÂÀÌ´Ù. ¹®¼­´Â ¾ÆÁ÷ ÀÛ¾÷ÁßÀÌ´Ù...
    </note>

    <p>ÀÌ ¸ðµâÀ» »ç¿ëÇÏ·Á¸é <module>mod_cache</module>°¡
    <em>ÇÊ¿äÇÏ´Ù</em>. ÀÌ ¸ðµâÀº <module>mod_cache</module>¸¦
    Áö¿øÇÏ¸ç ¸Þ¸ð¸®±â¹Ý ÀúÀå°ü¸®ÀÚ¸¦ Á¦°øÇÑ´Ù.
    <module>mod_mem_cache</module>´Â ÆÄÀÏ±â¼úÀÚ¸¦ Ä³½¬¿¡ ÀúÀåÇÏ°Å³ª
    °´Ã¼¸¦ Èü °ø°£¿¡ Ä³½¬ÇÏ´Â µÎ°¡Áö ¹æ½ÄÀ¸·Î µ¿ÀÛÇÑ´Ù.
    <module>mod_mem_cache</module>´Â Á÷Á¢ ¼­¹ö°¡ »ý¼ºÇÑ ÆäÀÌÁö¸¦
    Ä³½¬ÇÏ°Å³ª <directive module="mod_proxy">ProxyPass</directive>·Î
    ¼³Á¤ÇÑ (<dfn>¿ªÇÁ·Ï½Ã(reverse proxy)</dfn>)
    <module>mod_proxy</module>ÀÇ µÞ´Ü ¼­¹ö³»¿ëÀ» Ä³½¬ÇÒ¶§ ÁÖ·Î
    »ç¿ëÇÑ´Ù.</p>

    <p>³»¿ëÀº URI¸¦ Å°·Î »ç¿ëÇÏ¿© Ä³½¬¿¡ ÀúÀåÇÏ°í °¡Á®¿Â´Ù.
    Á¢±ÙÀ» Á¦¾îÇÏ´Â ³»¿ëÀº Ä³½¬¿¡ ÀúÀåÇÏÁö ¾Ê´Â´Ù.</p>
</summary>
<seealso><module>mod_cache</module></seealso>
<seealso><module>mod_disk_cache</module></seealso>

<directivesynopsis>
<name>MCacheSize</name>
<description>Ä³½¬¿¡ »ç¿ëÇÒ ÃÖ´ë ¸Þ¸ð¸®·® (KByte ´ÜÀ§)</description>
<syntax>MCacheSize <var>KBytes</var></syntax>
<default>MCacheSize 100</default>
<contextlist><context>server config</context></contextlist>

<usage>
    <p><directive>MCacheSize</directive> Áö½Ã¾î´Â Ä³½¬¿¡ »ç¿ëÇÒ
    ÃÖ´ë ¸Þ¸ð¸®·®À» KByte ´ÜÀ§·Î (1024 ¹ÙÀÌÆ® ´ÜÀ§) ¼³Á¤ÇÑ´Ù.
    »õ·Î¿î °´Ã¼À» Ä³½¬¿¡ Ãß°¡ÇØ¾ß ÇÏ´Âµ¥ °´Ã¼ÀÇ Å©±â°¡ ³²Àº
    ¸Þ¸ð¸®º¸´Ù Å©´Ù¸é »õ·Î¿î °´Ã¼À» Ä³½¬ÇÒ ¼ö ÀÖÀ»¶§±îÁö ´Ù¸¥
    °´Ã¼¸¦ Á¦°ÅÇÑ´Ù. <directive
    module="mod_mem_cache">MCacheRemovalAlgorithm</directive>À¸·Î
    ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» »ç¿ëÇÏ¿© Á¦°ÅÇÒ °´Ã¼¸¦ ¼±ÅÃÇÑ´Ù.</p>

    <example><title>¿¹Á¦</title>
      MCacheSize 700000
    </example>

    <note><title>ÁÖÀÇ</title>
      <p><directive>MCacheSize</directive> °ªÀº <directive
      module="mod_mem_cache">MCacheMaxObjectSize</directive>
      Áö½Ã¾î·Î ÁöÁ¤ÇÑ °ªº¸´Ù Ä¿¾ß ÇÑ´Ù.</p>
    </note>
</usage>
</directivesynopsis>

<directivesynopsis>
<name>MCacheMaxObjectCount</name>
<description>Ä³½¬¿¡ ÀúÀåÇÒ ¼ö ÀÖ´Â ÃÖ´ë °´Ã¼°³¼ö</description>
<syntax>MCacheMaxObjectCount <var>value</var></syntax>
<default>MCacheMaxObjectCount 1009</default>
<contextlist><context>server config</context></contextlist>

<usage>
    <p><directive>MCacheMaxObjectCount</directive> Áö½Ã¾î´Â
    Ä³½¬ÇÒ ¼ö ÀÖ´Â ÃÖ´ë °´Ã¼°³¼ö¸¦ ¼³Á¤ÇÑ´Ù. ÀÌ °ªÀº ÇØ½¬Å×ÀÌºíÀ»
    ¸¸µé¶§ »ç¿ëÇÑ´Ù. »õ·Î¿î °´Ã¼¸¦ Ä³½¬¿¡ Ãß°¡ÇØ¾ß ÇÏ´Âµ¥ ÃÖ´ë
    °´Ã¼°³¼ö¿¡ µµ´ÞÇÏ¿´´Ù¸é, »õ·Î¿î °´Ã¼¸¦ Ä³½¬ÇÒ ¼ö ÀÖµµ·Ï
    ´Ù¸¥ °´Ã¼¸¦ Á¦°ÅÇÑ´Ù. <directive
    module="mod_mem_cache">MCacheRemovalAlgorithm</directive>À¸·Î
    ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» »ç¿ëÇÏ¿© Á¦°ÅÇÒ °´Ã¼¸¦ ¼±ÅÃÇÑ´Ù.</p>

    <example><title>¿¹Á¦</title>
      MCacheMaxObjectCount 13001
    </example>
</usage>
</directivesynopsis>

<directivesynopsis>
<name>MCacheMinObjectSize</name>
<description>Ä³½¬¿¡ ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ¼Ò Å©±â (¹ÙÀÌÆ® ´ÜÀ§)</description>
<syntax>MCacheMinObjectSize <var>bytes</var></syntax>
<default>MCacheMinObjectSize 0</default>
<contextlist><context>server config</context></contextlist>

<usage>
    <p><directive>MCacheMinObjectSize</directive> Áö½Ã¾î´Â Ä³½¬¿¡
    ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ¼Ò Å©±â¸¦ ¹ÙÀÌÆ® ´ÜÀ§·Î ÁöÁ¤ÇÑ´Ù.</p>

    <example><title>¿¹Á¦</title>
      MCacheMinObjectSize 10000
    </example>
</usage>
</directivesynopsis>

<directivesynopsis>
<name>MCacheMaxObjectSize</name>
<description>Ä³½¬¿¡ ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ´ë Å©±â (¹ÙÀÌÆ® ´ÜÀ§)</description>
<syntax>MCacheMaxObjectSize <var>bytes</var></syntax>
<default>MCacheMaxObjectSize 10000</default>
<contextlist><context>server config</context></contextlist>

<usage>
    <p><directive>MCacheMaxObjectSize</directive> Áö½Ã¾î´Â Ä³½¬¿¡
    ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ´ë Å©±â¸¦ ¹ÙÀÌÆ® ´ÜÀ§·Î ÁöÁ¤ÇÑ´Ù.</p>

    <example><title>¿¹Á¦</title>
      MCacheMaxObjectSize 6400000
    </example>

    <note><title>Note</title>
      <p><directive>MCacheMaxObjectSize</directive> °ªÀº <directive
      module="mod_mem_cache">MCacheMinObjectSize</directive>
      Áö½Ã¾î·Î ÁöÁ¤ÇÑ °ªº¸´Ù Ä¿¾ß ÇÑ´Ù.</p>
    </note>
</usage>
</directivesynopsis>

<directivesynopsis>
<name>MCacheRemovalAlgorithm</name>
<description>Ä³½¬¿¡¼­ Á¦°ÅÇÒ ¹®¼­¸¦ Ã£´Â ¾Ë°í¸®Áò</description>
<syntax>MCacheRemovalAlgorithm LRU|GDSF</syntax>
<default>MCacheRemovalAlgorithm GDSF</default>
<contextlist><context>server config</context></contextlist>

<usage>
    <p><directive>MCacheRemovalAlgorithm</directive> Áö½Ã¾î´Â
    Ä³½¬¿¡¼­ Á¦°ÅÇÒ ¹®¼­¸¦ Ã£´Â ¾Ë°í¸®ÁòÀ» ÁöÁ¤ÇÑ´Ù.</p>

    <dl>
      <dt><code>LRU</code> (Least Recently Used)</dt>
      <dd><code>LRU</code>´Â °¡Àå ¿À·¡µ¿¾È Á¢±ÙÇÏÁö ¾ÊÀº ¹®¼­¸¦
      ¸ÕÀú Á¦°ÅÇÑ´Ù.</dd>

      <dt><code>GDSF</code> (GreadyDual-Size)</dt>
      <dd><code>GDSF</code>´Â Ä³½¬ ½ÇÆÐ(cache miss) ºñ¿ë°ú ¹®¼­ÀÇ
      Å©±â¸¦ °¡Áö°í Ä³½¬ÇÑ ¹®¼­¿¡ ¿ì¼±¼øÀ§¸¦ ºÎ¿©ÇÑ´Ù. °¡Àå
      ¿ì¼±¼øÀ§°¡ ³·Àº ¹®¼­¸¦ ¸ÕÀú Á¦°ÅÇÑ´Ù.</dd>
    </dl>

    <example><title>¿¹Á¦</title>
      MCacheRemovalAlgorithm GDSF<br />
      MCacheRemovalAlgorithm LRU
    </example>
</usage>
</directivesynopsis>

<directivesynopsis>
<name>MCacheMaxStreamingBuffer</name>
<description>ÀÀ´äÀ» Ä³½¬¾ÈÇÑ´Ù°í °áÁ¤ÇÏ±â Àü±îÁö ¸Þ¸ð¸® ¹öÆÛ¿¡
ÀúÀåÇÒ ½ºÆ®¸² ÀÀ´äÀÇ ÃÖ´ë Å©±â</description>
<syntax>MCacheMaxStreamingBuffer <var>size_in_bytes</var></syntax>
<default>MCacheMaxStreamingBuffer 100000°ú MCacheMaxObjectSize
Áß¿¡ ÀÛÀº °ª</default>
<contextlist><context>server config</context>
</contextlist>

<usage>
    <p><directive>MCacheMaxStreamingBuffer</directive> Áö½Ã¾î´Â
    ÀÀ´äÀÌ ³Ê¹« Ä¿¼­ Ä³½¬ÇÒ ¼ö ¾øÀ»¶§±îÁö ¹öÆÛ¿¡ ÀúÀåÇÒ ½ºÆ®¸²
    ÀÀ´äÀÇ ÃÖ´ë ¹ÙÀÌÆ®¼ö¸¦ ¼³Á¤ÇÑ´Ù. ½ºÆ®¸² ÀÀ´ä(streamed response)Àº
    ÀüÃ¼ ³»¿ëÀ» Áï½Ã ¾Ë ¼ö ¾ø°í <code>Content-Length</code>µµ
    ¸ð¸£´Â ÀÀ´äÀÌ´Ù. ÇÁ·Ï½ÃµÈ ÀÀ´äÀÌ³ª CGI ½ºÅ©¸³Æ®ÀÇ Ãâ·ÂÀÌ
    ½ºÆ®¸² ÀÀ´ä¿¡ ¼ÓÇÑ´Ù. ±âº»ÀûÀ¸·Î <code>Content-Length</code>
    Çì´õ°¡ ¾ø´Ù¸é ½ºÆ®¸² ÀÀ´äÀ» Ä³½¬¿¡ ÀúÀåÇÏÁö <em>¾Ê´Â´Ù</em>.
    ÀÌÀ¯´Â Ä³½¬¿¡ ÀúÀåÇÏ±â¿¡ ³Ê¹« Å« ÀÀ´äÀÇ ÀÏºÎ¸¦ ¹öÆÛ¿¡
    ÀúÀåÇÏ±âÀ§ÇØ ¸¹Àº ¸Þ¸ð¸®¸¦ ³¶ºñÇÏÁö ¾Ê±âÀ§ÇØ¼­ÀÌ´Ù.
    <directive>MCacheMaxStreamingBuffer</directive> Áö½Ã¾î¸¦
    »ç¿ëÇÏ¸é <code>Content-Length</code>°¡ ¾ø´Â ½ºÆ®¸² ÀÀ´äÀ»
    ÁöÁ¤ÇÑ Å©±â±îÁö¸¸ ¹öÆÛ¿¡ ÀúÀåÇÑ´Ù. ÃÖ´ë Å©±â¸¦ ³Ñ¾î¼­¸é
    ¹öÆÛ ³»¿ëÀ» ¹ö¸®°í Ä³½¬ÇÏÁö ¾Ê´Â´Ù.</p>

    <note><title>ÁÖÀÇ:</title>
      <p><directive>MCacheMaxStreamingBuffer</directive>¿¡ 0ÀÌ
      ¾Æ´Ñ °ªÀ» ¼³Á¤ÇÏ¿©µµ Å¬¶óÀÌ¾ðÆ®·Î ÀÀ´äÀ» ´Ê°Ô º¸³»Áö ¾Ê´Â´Ù.
      <module>mod_mem_cache</module>´Â ½ºÆ®¸² ÀÀ´äÀÇ ÀÏºÎ¸¦
      ¹öÆÛ¿¡ º¹»çÇÏÀÚ¸¶ÀÚ Å¬¶óÀÌ¾ðÆ®·Î º¸³»±âÀ§ÇØ ´ÙÀ½ Ãâ·ÂÇÊÅÍ·Î
      º¸³½´Ù.</p>
    </note>

    <example>
      # ½ºÆ®¸² ÀÀ´äÀ» 64KB±îÁö Ä³½¬ÇÑ´Ù:<br />
      MCacheMaxStreamingBuffer 65536
    </example>
</usage>
</directivesynopsis>

</modulesynopsis>
