2009-12-29 3 views
0

정말 기능이 매우 특색있는 프로그램을 찾고 있습니다. 희망적으로 존재하기 때문에 직접 구현할 필요가 없습니다. 이 가상의 프로그램을 작업 디렉토리에있는 문서 압축 된 파일 시스템 캐시로 가장 잘 설명 할 수 있습니다. 나는이 프로그램이 할 무엇을 기대의 모형을 제작했습니다파일 시스템 기반 압축 캐시 - 이것이 있습니까?

[email protected]:~/htdocs/$ tree -a 
. 
|-- image.png 
`-- index.html 

0 directories, 2 files 

[email protected]:~/htdocs/$ zipcache init 
Initialized cache in ./.zipcache/ 
[email protected]:~/htdocs/$ tree -a 
. 
|-- .zipcache 
| |-- gzip 
| | `-- index.html.gz 
| `-- lzma 
|  `-- index.html.lzma 
|-- image.png 
`-- index.html 

1 directory, 3 files 
[email protected]:~/htdocs/$ zipcache gzip index.html 
... zipcache emits gzipped copy of index.html on stdout by cat-ing ./.zipcache/gzip/index.html.gz 
[email protected]:~/htdocs/$ zipcache lzma index.html 
... zipcache emits lzma'd copy of index.html on stdout by cat-ing ./.zipcache/lzma/index.html.gz 
[email protected]:~/htdocs/$ zipcache lzma image.png 
... zipcache generates error signifying cache miss (it's intelligent enough to know that PNG shouldn't be further zipped) ... 

내 궁극적 인 관심사는 반복적으로 사용할 수 컨텐트 인코딩으로 HTTP를 통해 전송되는 정적 파일의 압축 된 복사본을 캐싱. 파일을 요청할 때마다 압축을 계산할 의사가 없습니다.

내가 모르는 위의 기능에 대한 용어가있을 수 있습니다. Google 검색 결과가 매우 성공적이지 않은 경우에도 올바른 방향으로 가리켜 주시면 감사하겠습니다.

답변

2

존재 확실하지 않다 [이 응답되어 틀림를 질문 "이로부터 하나"대신]

그것은 자신이 나쁜 생각하고 웹 서버가 수행하도록해야이 일 것 같아

이.

난 당신이 유닉스 변종에 아파치를 사용하고 추측하고있어,하지만 완성도 :

0

나는 당신이 그런 캐싱을위한 아주 간단한 PHP 스크립트를 작성할 수 있다고 생각한다. 나는 그런 일이 이미