jb / api-yahoo-weather-bundle
用于SYmfony2的一个包,通过jb/api-yahoo-weather从Yahoo API获取天气信息
1.3.2
2014-11-10 14:48 UTC
Requires
- php: >=5.3.0
- jb/api-yahoo-weather: ~1.0
- symfony/framework-bundle: ~2.3
Suggests
- aequasi/cache-bundle: to use memcached features
This package is not auto-updated.
Last update: 2024-09-24 04:12:24 UTC
README
##用户指南(beta)##
jb_api_yahoo_weather:
woeid: 123456
unit: c
aequasi_cache:
instances:
jb_api_yahoo_weather:
persistent: false # Boolean or persistent_id
namespace: jayw
type: memcached
hosts:
- { host: localhost, port: 11211 }
"fabpot/goutte": "~2.0",
"aequasi/cache-bundle": "dev-master"
当使用memcached时,你可以在HTTP响应头中看到日期是否来自API或缓存。关键字是api-weather-hit-cache