Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add image search result cache through a hash array #40

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

wefriend
Copy link

  1. Add image search result cache through a hash array. It will reduce many requests to search the images if it had searched before in a caching period. Values maxImgHashNum and maxImgCacheTimeSeconds contorl the hash array and cache time.
  2. Fix getting avcode rule, function getAvCode.
  3. Add a empty image if image not found. Empty image use a base64 image data value emptyImageData instead.
  4. Fix something that maybe cause errors.

1. Add image search result cache through a hash array. It will reduce many requests to search the images if it had searched before in a caching period. Values `maxImgHashNum` and `maxImgCacheTimeSeconds` contorl the hash array and cache time.
2. Fix getting avcode rule, function `getAvCode`.
3. Add a empty image if image not found. Empty image use a base64 image data value `emptyImageData` instead.
3. Fix something that maybe cause errors.
fix http://
fix blogjav
delete useless console
@hobbyfang
Copy link
Owner

不好意思,之前有快一年没怎么更新,所以都没留意到留言,最近更新多了后才看到留言。
1、暂时还没考虑缓存图片地址。
2、后面更新版本有改过这函数,不知是否合适没整合。
3、这个会加入到v3.8.0里,谢谢。
4、其他代码有能加入的,将体现在v3.8.0版本。

感谢你提交代码及相关意见。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants