Skip to content

AlekseyKorzun/timeinterval-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TimeInterval for PHP 5

When developers optimize their applications, the usage of NOW() and other dynamic MySQL methods is often overlooked.

The problem with using NOW() (and other identical methods) that the query will always be dynamic, which means that there will be no cache record within the database.

This class allows you to create a static time intervals so you can perform same NOW() based look-ups per multiple requests.

Usage

If you have your own autoloader, simply update namespaces and drop the files into your frameworks library.

For people that do not have that setup, you can visit http://getcomposer.org to install composer on your system. After installation simply run composer install in parent directory of this distribution to generate vendor/ directory with a cross system autoloader.

Please see Examples directory for a simple run down of functionality.

About

See: http://alekseykorzun.com/post/7856565665/high-scalability-and-mysqls-now-dont-mix

About

This class allows you to create a smart intervals for current time allowing you to perform same look ups for specific intervals per multiple requests.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published