支持GoFrame
来源:GoFrame
浏览 8
扫码
分享
2024-12-09 22:00:10
New Features
- Added a concurrency-safe high-performance task timer module
gtimer
, similar to Java’s Timer
, but more powerful. It is implemented with a flexible and efficient hierarchical timing wheel design and can manage millions of scheduled tasks. gtimer
is one of the core modules of the GoFrame
framework, with unit test coverage of 93.6%
: https://goframe.org/os/gtimer/index - Refactored the
gcron
scheduled task module using the task timer gtimer
, removing reliance on the third-party package github.com/robfig/cron
. gcron
now supports singleton pattern scheduled tasks: https://goframe.org/os/gcron/index#; - The
gconv
type conversion module now supports conversion of pointer properties within struct
structures: https://goframe.org/util/gconv/struct; gform
has added a feature to automatically recognize database types, which is very useful when the query results need to be returned in json
format: https://goframe.org/database/orm/indexTravis CI
has added support for automated testing on the 386
architecture (currently supports both 386
and amd64
);
New Functions
- The
ghttp
module adds Exit
, ExitAll
, and ExitHook
methods for HTTP request flow control: https://goframe.org/net/ghttp/service/object; - The
grand
module adds Meet/MeetProb
methods for random probability-based judgments and adds alias methods N/Str/Digits/Letters
; - The
gvalid
data/form validation module adds support for validating 16X
and 19X
phone numbers;
Function Improvements
gform
sets the default database connection pool CONN_MAX_LIFE
parameter value to 30
seconds;- Improved the
glist
module, boosting performance by about 20%
and adding several linked list operation methods; - Enhanced the
gqueue
module, increasing performance by about 50%
and adding support for select
syntax with the use of Queue.C
: https://goframe.org/container/gqueue/index; - Improved the
gmlock
memory lock module and completed unit test cases: https://goframe.org/os/gmlock/index; - Improved all concurrency-safe container modules, changing the non-required parameter
safe...bool
to unsafe...bool
for concurrency safety control; - Enhanced the
gpool
object reuse module to support concurrency safety; - Updated third-party dependencies for the
gkafka
module; - Completed unit test cases for the
ghttp
module;
Bug Fix
- Fixed the issue where the file pointer was not closed when operating on files in the
gmd5
module; - Fixed the issue where expired cache items were not deleted in the
gcache
module; - Other fixes;