package
Version:
v1.8.5
Opens a new window with list of versions in this module.
Published: Sep 10, 2019
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package gfpool provides io-reusable pool for file pointer.
文件指针池指针
获得文件对象,并自动创建指针池(过期时间单位:毫秒)
获得底层文件指针(返回error是标准库io.ReadWriteCloser接口实现)
File pointer pool.
创建一个文件指针池,expire = 0表示不过期,expire < 0表示使用完立即回收,expire > 0表示超时回收,默认值为0表示不过期。
注意过期时间单位为:毫秒。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.